Ah, thanks for catching the requirement about integer weights.
If you multiply the terms in that example by 2 to make them integers, it would be a counter to the second point above where n=1. Regardless, based on the first point, I believe you're very close to a solution that's far more elegant than the sort of approach I initially thought this problem was going to require.