Problem:
a and b are positive integers. When written in binary, has 2004 1's, and has 2005 1's (not necessarily consecutive). What is the smallest number of 1's could possibly have?
Problem:
a and b are positive integers. When written in binary, has 2004 1's, and has 2005 1's (not necessarily consecutive). What is the smallest number of 1's could possibly have?
Solution:
Consider the following addition:
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 and .) Then the sum has only one 1. And clearly it is not possible to get any less than one 1.