Let (an)n≥1 be an increasing sequence of positive integers such that 1.a2n=an+n for all n≥1 2.if an is prime, then n is a prime. Prove that an=n, for all n≥1.
Let a1=c. Then a2=a1+1=c+1,a4=a2+2=c+3. Since the sequence is increasing,it follows that a3=c+2. We Prove that an=c+n1 for all n1. Indeed, if n=2k for some integer k this follows by induction on k. Suppose that a2k=c+2k1. Then a2k+1=a2.2k=a2k+2k=c+2k+11. If 2k<n<2k+1, then c+2k1=a2k<a2k+1<...<an<...<a2k+1=c+2k+11 add this is possible only if an=c+n1.
Next we prove that c=1. Suppose that c2 and let p<q be two consecutive prime numbers greater than c. We have aqc+1=c+qc=q, hence qc+1 is a prime and clearly qc+1p. It follows that for any consecutive prime numbers p<q we have qc+1. The numbers (c+1)!+2,(c+1)!+3...,(c+1)!+c+1 are all composite, hence if p and q are the consecutive primes such that p<(c+1)!+2<(c+1)!+c+1<q then qp>c1, a contradiction. It follows that c=0 and an=n for all n1.