For each integer , define the sequence for as
Determine all values of such that there exists a number such that for infinitely many values of .
[i]
For each integer , define the sequence for as
Determine all values of such that there exists a number such that for infinitely many values of .
[i]
We are given a sequence defined by where the recurrence relation for is:
The goal is to determine all starting values such that the sequence reaches a specific number infinitely often.
### Analysis of the Sequence
1. Case for an Integer Square Root:
If is an integer, denote it by , then and . Repeated application will eventually bring the sequence to 1 unless it stops fluctuating between a finite set of values (possibly including 0).
2. Case without an Integer Square Root:
If is not an integer, the sequence progresses by adding 3 repeatedly: .
### Detecting a Recurrent
For the sequence to reach a number infinitely often, it must eventually stabilize in some way under these operations. This stability can occur if the process cycles or remains constant under the updates dictated by the sequence definition.
Consider a scenario where the progression via additions may revert:
- The condition implies:
Notice how, due to repeated additions by 3, any number that is initially divisible by 3 remains divisible by 3. Hence, the requirement implies all members of the sequence remain in the residue class of 0 modulo 3.
### Conclusion:
If 3 divides , then the repeated addition by 3 ensures that the sequence returns to specific numbers mod 3, thus maintaining periodicity and reaching certain values arbitrarily many times. However, if , then the condition for reaching a constant value over the sequence may fail. The sequence will not stabilize at an that's revisited infinitely often.
Thus, the values for such that there exists a number where for infinitely many is:
This completes our investigation, confirming the given reference answer by deriving its constraints through exploration of sequence behavior under modular arithmetic considerations.