(AIME 1994) Find the positive integer n for which
[log2 1] + [log2 2] + [log2 3] +…+ [log2 n] = 1994
where [x] denotes the greatest integer less than or equal to x (for example [Π] = 3)
Solution:
Observe that:
[log2 1] = 0(20)
[log2 2] + [log2 3] = 1(21)
[log2 4] + [log2 5] + [log2 6] + [log2 7] = 2(22)
[log2 8] + [log2 9] +…+ [log2 15] = 3(23)
[log2 16] + [log2 17] +…+ [log2 31] = 4(24) ……
** [log2 c] + [log2 (c+1)] +…+ [log2 (2c-1)] = b(2b); where 2b = c, for positive integers b and c.
So,
0(20) + 1(21) + 2(22) + 3(23) + 4(24) + 5(25) + 6(26) + 7(27) + 456 = 1994
**7(27) is the sum of [log2 128] + [log2 129] + [log2 130] +…+ [log2 255]. Hence, 456 = [log2 256] + [log2 257] + [log2 258] +…+ [log2 n].
Since [log2 256]=[log2 257]=[log2 258]=…=[log2 n] = 8
So, 456/8 = 57; Then n = 256 + (57-1).
Therefore, n = 312






Posted by Vishal on April 7, 2008 at 9:34 PM
It would be great if you used LaTeX code for math. Nice blog, btw!
Posted by ella on April 4, 2011 at 6:49 PM
Interesting Posts,I will visit you , I have a blog, too
http://triptravel2.blogspot.com/
congratulations
Posted by rosapaulina on April 8, 2008 at 11:48 AM
Thanks Vishal!!!