Maths Olympiad Prep

Library / /104 of 860

Algebra Difficulty 4.8 AIME Find the answer

Let f(n)f(n) be the number of times you have to hit the \sqrt{ } key on a calculator to get a number less than 2 starting from nn. For instance, f(2)=1,f(5)=2f(2)=1, f(5)=2. For how many 1<m<20081<m<2008 is f(m)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)[2^{1}, 2^{2}) \cup [2^{4}, 2^{8}) \cup [2^{16}, 2^{32}) \ldots, and 28<2008<2162^{8}<2008<2^{16} 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.