For each positive integer and non-negative integer , define recursively by Find the last three digits in the decimal representation of .
Solution
For any , we have Thus, Let for brevity, and note that , and . Then, is and . From this we can conclude (by the Chinese Remainder Theorem) that the answer is 875.
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.