Let f(n) be the number of times you have to hit the key on a calculator to get a number less than 2 starting from n. For instance, f(2)=1,f(5)=2. For how many 1<m<2008 is f(m) odd?
A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.
Solution
This is [21,22)∪[24,28)∪[216,232)…, and 28<2008<216 so we have exactly the first two intervals.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: Omni-MATH,
licensed Apache-2.0.
Statement and solution reproduced as published; topic and difficulty added by this site.