2012 AIME I Problem 5
Problem 5 of 15EasierCombinatoricsArithmetic
Let be the set of all binary integers that can be written using exactly zeros and ones where leading zeros are allowed. If all possible subtractions are performed in which one element of is subtracted from another, find the number of times the answer is obtained.
Your answer
Integer from 0 to 999
Show solution
Solution
We must count pairs of elements of differing by say and Adding to a binary number turns its trailing block (a zero followed by ones) into changing the number of ones by Both numbers have exactly eight ones precisely when ends in ends in and the two numbers agree everywhere else.
The shared first eleven digits then consist of the remaining seven ones and four zeros, and since leading zeros are allowed, every arrangement gives a valid pair: Each pair produces the answer exactly once, so the count is
Tagged: number base · combinations