Maths Olympiad Prep

Library / /101 of 377

Algebra Difficulty 4.8 AIME Prove it United States

Problem:

a and b are positive integers. When written in binary, aa has 2004 1's, and bb has 2005 1's (not necessarily consecutive). What is the smallest number of 1's a+ba+b could possibly have?

Solution

Solution:

Consider the following addition:
11110001+1111 \begin{array}{r} 111\cdots 100\cdots 01 \\ + \\ 11\cdots 11 \end{array}
By making the blocks of 1's and 0's appropriately long, we can ensure that the addends respectively contain 2004 and 2005 1's. (To be precise, we get a=2400822005+1a = 2^{4008} - 2^{2005} + 1 and b=220051b = 2^{2005} - 1.) Then the sum has only one 1. And clearly it is not possible to get any less than one 1.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.