Maths Olympiad Prep

Library / HMMT February /165 of 1302

HMMT February

Number theory Difficulty 4.8 AIME Find the answer

How many positive integers n≤2009n \leq 2009 have the property that ⌊log⁡2(n)⌋\left\lfloor\log _{2}(n)\right\rfloor is odd?

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

We wish to find nn such that there is some natural number kk for which 2k−1≤log⁡2n<2 k-1 \leq \log _{2} n< 2k2 k. Since n≤2009n \leq 2009 we must have k≤5k \leq 5. This is equivalent to finding the number of positive integers n≤2009n \leq 2009 satisfying 22k−1≤n<22k2^{2 k-1} \leq n<2^{2 k} for some k≤5k \leq 5, so the number of such integers is 2+23+25+27+29=6822+2^{3}+2^{5}+2^{7}+2^{9}=682

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.