Skip to main content

1994 AIME Problem 4

Problem 4 of 15EasierAlgebraNumber Theory

Find the positive integer nn for which ⌊log⁡21⌋+⌊log⁡22⌋+⌊log⁡23⌋+⋯+⌊log⁡2n⌋=1994.\begin{aligned}&\lfloor\log_2 1\rfloor+\lfloor\log_2 2\rfloor+\lfloor\log_2 3\rfloor\\&\quad+\cdots+\lfloor\log_2 n\rfloor=1994.\end{aligned} (For real x,x, ⌊x⌋\lfloor x\rfloor is the greatest integer not exceeding x.x.)

Your answer

Integer from 0 to 999
Show solution

Solution

For 2j≤k<2j+1,2^j\leq k<2^{j+1}, the summand is j.j. Thus the sum through 255=28−1255=2^8-1 is ∑j=07j2j=(8−2)28+2=1538.\sum_{j=0}^7j2^j=(8-2)2^8+2=1538. The remaining 1994−1538=4561994-1538=456 is 57⋅8,57\cdot8, so we include 5757 more integers beginning with 256.256. Hence n=255+57=312.n=255+57=312.
AoPS wiki

Tagged: floor and ceiling functions · logarithm · power of 2

More practice