In binary, the number of digits 0 in this quote is ______.
In binary, the number of digits 1 in this quote is ______.
Fill both blanks in binary without leading zeroes. Concatenate the two answers (the answer for the 0 first, both still in binary) as your answer.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Suppose the first answer is x , having a = ⌊ lo g 2 x ⌋ + 1 digits, and the second answer is y , having b = ⌊ lo g 2 y ⌋ + 1 digits. Note that x ≥ 2 a − 1 , y ≥ 2 b − 1 .
Note that x + y counts all the digits. On the other hand, there are 2 + a + b digits. Thus 2 + a + b = x + y ≥ 2 a − 1 + 2 b − 1 , or ( 2 a − 1 − a ) + ( 2 b − 1 − b ) ≤ 2 . But 2 t − 1 − t ≥ 0 for all natural number t , so we have 2 a − 1 − a , 2 b − 1 − b ≤ 2 .
By finding the derivative of t ↦ 2 t − 1 − t , we can see that it is increasing for t ≥ 2 , and for t = 4 we have 2 t − 1 − t = 4 > 2 , so 2 t − 1 − t > 2 for all t ≥ 4 . Thus a , b ≤ 3 , or x , y ≤ 7 . Also, x , y ≥ 1 since they count at least the existing 0 and 1. There are just 4 9 cases to search, which should be doable (if tiring) by hand.
The unique solution is ( 1 1 2 , 1 0 0 2 ) , where there are 3 = 1 1 2 zeroes and 4 = 1 0 0 2 ones.