Problem 3
Determine all positive integers for which there exist a positive integer and a set of positive integers such that any integer can be written as a sum of distinct elements of in exactly ways.
Step 5 of 5: Count representations by residue to force k a power of two
Detailed analysis
Since any nonnegative integer has a unique representation as a sum of distinct elements of once it is a large enough multiple of , the number of ways to write a large as a sum of distinct elements of equals the number of subsets with . This count must equal for every one of the residue classes, so equals the total number of subsets of , namely . Hence divides , so is a power of two, completing the classification.