Solution: We wish to find n such that there is some natural number k for which 2k−1≤log2n<2k. Since n≤2009 we must have k≤5. This is equivalent to finding the number of positive integers n≤2009 satisfying 22k−1≤n<22k for some k≤5, so the number of such integers is 2+23+25+27+29=682.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.