The sequence
Find the period of this seqence.
Compute the next few values of
Because the next term depends on the previous two terms, you can't stop once a single number gets repeated. You can only stop when a pair of consecutive terms has appeared before in the sequence.
You need to compute as far as