Skip to main content

2012 AIME I Problem 5

Problem 5 of 15EasierCombinatoricsArithmetic

Let BB be the set of all binary integers that can be written using exactly 55 zeros and 88 ones where leading zeros are allowed. If all possible subtractions are performed in which one element of BB is subtracted from another, find the number of times the answer 11 is obtained.

Your answer

Integer from 0 to 999
Show solution

Solution

We must count pairs of elements of BB differing by 1,1, say mm and m+1.m + 1. Adding 11 to a binary number turns its trailing block 011⋯1011\cdots1 (a zero followed by kk ones) into 100⋯0,100\cdots0, changing the number of ones by 1−k.1 - k. Both numbers have exactly eight ones precisely when k=1:k = 1: mm ends in 01,01, m+1m + 1 ends in 10,10, 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: (114)=330.\binom{11}{4} = 330. Each pair produces the answer 11 exactly once, so the count is 330.330.
AoPS wiki

Tagged: number base · combinations

More practice