Let k>1 be an integer. The sequence {ai}i=1∞ is defined as a1=1, a2=k, and for all n>1 we have an+1−(k+1)an+an−1=0. Find all positive integers n such that an is a power of k.
Solution
We are going to find the general term of the sequence. Note that since k>1, the characteristic polynomial P(x)=x2−(k+1)x+1 has two different roots r1=2k+1+(k−1)(k+3),r2=2k+1−(k−1)(k+3). So an has a general form as an=c1r1n+c2r2n, where c1,c2 are fixed numbers. Considering the values of a1,a2, the values of c1,c2 are found c1=2k+3k+3−k−1,c2=2k+3k+3+k−1. Lemma.The sequence has a general form as an=φ+φ1φ2n−1+φ2n−11, where φ=2k+3+k−1. Proof. Note that r1+r2=k+1 and r1r2=1. If we set φ=2k+3+k−1, we have φ2=2k+1+(k−1)(k+3)=r1=r21,φ1=2k+3−k−1,φ+φ1=k+3. Therefore c1=φ1⋅φ+φ11,c2=φ⋅φ+φ11. So we get an=φ(φ+φ1)1⋅(φ2)n+φ+φ1φ⋅(φ21)n=φ+φ1φ2n−1+φ2n−11. It is easy to see, by induction, that if we consider the sequence modulo k we have (a6n+1,a6n+2,a6n+3,a6n+4,a6n+5,a6n+6)≡k(1,0,−1,−1,0,1). Therefore another lemma is concluded. Lemma. For any positive integer n, we have k∣an⟺n≡32, and gcd(k,an)=1⟺n≡32. Now we prove the third and the final lemma. Lemma. For any two odd numbers m and n such that n∣m, we have a2n+1∣a2m+1 Proof. First, we claim that for any integer n, φ2n+φ2n1∈Z+. For n=0,1 the claim is correct. Assume that the claim is true for n−1,n−2. We have ∈Z+(φ2(n−2)+φ2(n−2)1)+(φ2n+φ2n1)=∈Z+(φ2(n−1)+φ2(n−1)1)(φ2+φ21). Therefore φ2n+φ2n1∈Z+, so the claim is proved, using induction on n. Now set m=nl (therefore l is also odd). We have a2n+1=φ+φ1φn+φn1,a2m+1=φ+φ1φnl+φnl1. Therefore a2n+1a2m+1=φn+φn1φnl+φnl1=φ(l−1)n−φ(l−3)n+⋯−φ(l−3)n1+φ(l−1)n1=i≡22l−1∑(φ2in+φ2in1)−j≡22l−3∑(φ2jn+φ2jn1)=s∈Z, So a2m+1=s⋅a2n+1, hence the lemma.
Back to the problem, let n be an integer such that an=km is a power of k. Assume that n≥3. Consider a prime factor of 2n−1 like p. Since both p and 2n−1 are odd numbers, according to the final lemma we have a2p+1∣an. Again, consider a prime factor of a2p+1 like q, we have q∣a2p+1∣an=km⟹q∣k. Therefore gcd(k,a2p+1)≥q. So according to the second lemma, since gcd(k,a2p+1)=1 we have 2p+1=32⟹p=30⟹p=3. So 2n−1=3v for some integer v. Since n≥3 we have v≥2. Therefore 9∣3v∣2n−1. Again, according to the final lemma we obtain a5=a29+1∣an. But a5=k(k3+3k2−3). So we must have t=k3+3k2−3∣km−1. Note that k≥2, so t≥17. Thus m−1>0. Let r be a prime factor of t. We have r∣t∣km−1r∣k3+3k2−3}⟹r∣3⟹r=3. Therefore k3+3k3−3=3h, since t≥17 we have h≥3. The final equation implies k=3u for some integer u. So we can rewrite it as 27u3+27u−3=3h. Since h≥3, we have 27∣3h but 27∤27u3+27u−3. Contradiction. This means our assumption that such n≥3 exists was incorrect. So n=1,2 are the only answers of the problem. ■
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.