From AIME 1994

(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

3 responses to this post.

  1. It would be great if you used LaTeX code for math. Nice blog, btw!

    Reply

  2. Thanks Vishal!!!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.