Problem:
Let and let equal for . Define to be 1 if and -1 if . What is the largest such that ?
Solution
Solution:
Answer: 1092
Suppose that for some . Then because . The following table lists the values of and for a few :
| 0 | ||
| 1 | ||
| 1 | ||
| -1 | ||
| 1 | ||
| -1 | ||
| 1 | ||
| -1 |
We see inductively that, for every ,
and
thus is the next for which . The values of for which satisfy the recurrence relation , and we compute that the first terms of the sequence are ; hence 1092 is our answer.
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.