2003 AIME I Problem 13
Problem 13 of 15HarderCombinatoricsArithmeticProblem-Solving Techniques
Let be the number of positive integers that are less than or equal to and whose base- representation has more ’s than ’s. Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
Since every integer in question has at most binary digits. A -digit binary number starts with and choosing more ’s among the remaining digits gives numbers with ones; the ’s outnumber the ’s exactly when So the count over all numbers up to is the total of the entries on or to the right of the center of rows through of Pascal’s triangle.
Those rows sum to and the central entries sum to so by symmetry the count is
The integers from to all exceed so each has the prefix plus at least one more hence at least six ’s among eleven digits — all were counted. Therefore whose remainder upon division by is
Tagged: number base · combinations · Pascal’s Triangle · symmetry