Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

algebra intermediate

Problem

The function is defined on the set of integers and satisfies Find .
Solution
Denote by (1) and (2) the two parts of the definition of , respectively. If we begin to use the definition of to compute , we use (2) until the argument is at least : (where denotes composing with itself times, for some ). The numbers form an arithmetic sequence with common difference ; since , this sequence has terms, so .

At this point, (1) and (2) are both used: we compute Repeating this process, we see that (The pattern breaks down for when is small, so it is not true that .) Now, we have
Final answer
997