Skip to main content

1996 AIME Problem 2

Problem 2 of 15EasierAlgebraCombinatorics

For each real number x,x, let ⌊x⌋\lfloor x\rfloor denote the greatest integer that does not exceed x.x. For how many positive integers nn is it true that n<1000n<1000 and that ⌊log⁡2n⌋\lfloor\log_2 n\rfloor is a positive even integer?

Your answer

Integer from 0 to 999
Show solution

Solution

If ⌊log⁡2n⌋=k,\lfloor\log_2n\rfloor=k, then 2k≤n<2k+1.2^k\leq n<2^{k+1}. The value of kk can be 2,2, 4,4, 6,6, or 8,8, since 210>1000.2^{10}>1000. The corresponding interval sizes are 22,2^2, 24,2^4, 26,2^6, and 28.2^8. Therefore the requested number is 4+16+64+256=340.4+16+64+256=340.
AoPS wiki

Tagged: floor and ceiling functions · logarithm · counting integers in a range

More practice