Problem 3
For positive integer , let be the number of integers in whose binary expansion has exactly three s. Prove every positive integer occurs as , and determine all for which exactly one has .
Step 4 of 5: Find consecutive binary numbers with two ones
In plain words
Find consecutive binary numbers with two ones
Detailed analysis
If a positive integer and its successor both have two s, the lower integer must have one high and the final : . The condition that also has two s requires , giving .