To prove that for each positive integer n, n and an are coprime, we will use induction and properties of the sequence defined by a1=2 and an+1=2an2−1.
1. Base Case:
For n=1, a1=2. Clearly, gcd(1,2)=1, so 1 and a1 are coprime.
2. Inductive Step:
Assume that for some k≥1, k and ak are coprime, i.e., gcd(k,ak)=1. We need to show that k+1 and ak+1 are also coprime.
Given ak+1=2ak2−1, we need to show that gcd(k+1,2ak2−1)=1.
3. Using the Inductive Hypothesis:
Suppose p is a prime divisor of both k+1 and ak+1. Then p∣2ak2−1. Since p∣k+1, we have k+1≡0(modp).
4. Residue Analysis:
Let bi=aimodp be the residue of ai modulo p. We need to analyze the sequence bi modulo p.
- If bk=0, then ak≡0(modp). This implies ak+1=2ak2−1≡−1(modp), so bk+1≡−1(modp). Hence, p∤ak+1.
- If bk=1, then ak≡1(modp). This implies ak+1=2ak2−1≡1(modp). Hence, p∤ak+1.
5. Pigeonhole Principle:
If bk=0,1 for 1≤k≤p−1, by the pigeonhole principle, there must exist indices 1≤i<j≤p−1 such that bi=bj. This implies that the sequence bi is periodic with period j−i without ever being zero. Hence, p∤ak+1.
6. Conclusion:
Since p∤ak+1 for any prime p dividing k+1, it follows that gcd(k+1,ak+1)=1.
By induction, we have shown that for all n≥1, gcd(n,an)=1.
■