Let be a sequence for which
, , and for each positive integer .
What is ?
Looking at the first few terms of the sequence:
Clearly, the sequence repeats every 6 terms.
Since ,