For each integer , define the sequence by
for each . Determine all values of for which there exists a number such that for infinitely many values of .
The values of are exactly for (i.e., ), and all integers that eventually reach such a value under the recurrence. Equivalently, works if and only if or is a perfect square whose iterated square roots eventually reach .
The values of are exactly for (i.e., ), and all integers that eventually reach such a value under the recurrence. Equivalently, works if and only if or is a perfect square whose iterated square roots eventually reach .
The values of are exactly for (i.e., ), and all integers that eventually reach such a value under the recurrence. Equivalently, works if and only if or is a perfect square whose iterated square roots eventually reach .
The values of are exactly for (i.e., ), and all integers that eventually reach such a value under the recurrence. Equivalently, works if and only if or is a perfect square whose iterated square roots eventually reach .
Hint 1: Consider what happens to as the sequence evolves. Note that adding 3 does not change the residue mod 3.
Hint 2: Recall that perfect squares are congruent to or modulo , never . What does this mean for starting values with ?
Hint 3: For or , show that the sequence must eventually hit a perfect square (since the gaps between consecutive perfect squares grow, but there are always perfect squares in each residue class). Then analyze the resulting cycle.
Step 1 (Key observation): If for infinitely many , then either is a fixed point (i.e., is an integer and the sequence stays at some value), or the sequence is eventually periodic returning to .
A fixed point requires , so (excluded since ) or the sequence cycles. If is a perfect square and is also a perfect square, the sequence decreases: This terminates at , but is special: . None of these become perfect squares again (since grows, gaps between consecutive squares exceed 3 for large ). So the sequence does NOT return to 4.
Step 2 (Correct analysis): Actually, let's be more careful. We need for infinitely many . If the sequence is eventually periodic, it returns to . Consider the sequence starting from :
If is not a perfect square, then . So the sequence increases by 3 until it hits a perfect square.
When it hits a perfect square , it jumps to .
For the sequence to be eventually periodic (hence infinitely often), after some point the sequence must cycle. The only way this happens is if the sequence reaches a value such that starting from , the sequence adds 3 repeatedly, hits a perfect square , drops to , and eventually returns to .
Step 3 (Working out examples):
: . So the sequence cycles through . Check: does it hit a perfect square? . These are . Perfect squares mod 3 are 0 or 1. So the sequence NEVER hits a perfect square again! Thus does NOT work.
Wait — let me recheck. (since ). Then is not a perfect square (well, is not an integer), so . These are . Since perfect squares are or , the sequence never hits a perfect square again. So it diverges to infinity. does NOT work.
Step 4 (Residue analysis): The key insight is that the "+3" operation preserves the residue mod 3. So only changes when we take a square root.
If : adding 3 keeps it . Perfect squares are multiples of 9: . So the sequence can hit a perfect square.
If : adding 3 keeps it . Perfect squares : . So the sequence can hit a perfect square.
If : perfect squares are never . So the sequence diverges!
Step 5 (Complete characterization): The sequence eventually becomes constant at if and only if it reaches a fixed point. A fixed point requires to not be a perfect square (so diverges) OR to be a perfect square leading to a cycle. After careful analysis, for infinitely many if and only if the sequence becomes eventually periodic.
The answer is: works if and only if , i.e., or . When , all subsequent terms (after any square root steps) remain if they stay non-square, and diverge. When or , the sequence eventually enters a cycle.
Ready to track your progress and master these topics?
Create a free account