Maths Olympiad Prep

Library / /265 of 299

Algebra Difficulty 7.4 National Olympiad, round 2 Prove it Iran

Let k>1k > 1 be an integer. The sequence {ai}i=1\{a_i\}_{i=1}^\infty is defined as a1=1a_1 = 1, a2=ka_2 = k, and for all n>1n > 1 we have
an+1(k+1)an+an1=0. a_{n+1} - (k+1)a_n + a_{n-1} = 0.
Find all positive integers nn such that ana_n is a power of kk.

Solution

We are going to find the general term of the sequence. Note that since k>1k > 1, the characteristic polynomial P(x)=x2(k+1)x+1P(x) = x^2 - (k+1)x + 1 has two different roots
r1=k+1+(k1)(k+3)2,r2=k+1(k1)(k+3)2. r_1 = \frac{k+1+\sqrt{(k-1)(k+3)}}{2}, \quad r_2 = \frac{k+1-\sqrt{(k-1)(k+3)}}{2}.
So ana_n has a general form as
an=c1r1n+c2r2n, a_n = c_1 r_1^n + c_2 r_2^n,
where c1,c2c_1, c_2 are fixed numbers. Considering the values of a1,a2a_1, a_2, the values of c1,c2c_1, c_2 are found
c1=k+3k12k+3,c2=k+3+k12k+3. c_1 = \frac{\sqrt{k+3} - \sqrt{k-1}}{2\sqrt{k+3}}, \quad c_2 = \frac{\sqrt{k+3} + \sqrt{k-1}}{2\sqrt{k+3}}.
Lemma. The sequence has a general form as
an=φ2n1+1φ2n1φ+1φ, a_n = \frac{\varphi^{2n-1} + \frac{1}{\varphi^{2n-1}}}{\varphi + \frac{1}{\varphi}},
where φ=k+3+k12. \text{where } \varphi = \frac{\sqrt{k+3}+\sqrt{k-1}}{2}.
Proof. Note that r1+r2=k+1r_1 + r_2 = k+1 and r1r2=1r_1 r_2 = 1. If we set φ=k+3+k12\varphi = \frac{\sqrt{k+3}+\sqrt{k-1}}{2}, we have
φ2=k+1+(k1)(k+3)2=r1=1r2,1φ=k+3k12,φ+1φ=k+3. \varphi^2 = \frac{k+1+\sqrt{(k-1)(k+3)}}{2} = r_1 = \frac{1}{r_2}, \\ \frac{1}{\varphi} = \frac{\sqrt{k+3}-\sqrt{k-1}}{2}, \\ \varphi + \frac{1}{\varphi} = \sqrt{k+3}.
Therefore
c1=1φ1φ+1φ,c2=φ1φ+1φ. c_1 = \frac{1}{\varphi} \cdot \frac{1}{\varphi + \frac{1}{\varphi}}, \quad c_2 = \varphi \cdot \frac{1}{\varphi + \frac{1}{\varphi}}.
So we get
an=1φ(φ+1φ)(φ2)n+φφ+1φ(1φ2)n=φ2n1+1φ2n1φ+1φ. a_n = \frac{1}{\varphi(\varphi + \frac{1}{\varphi})} \cdot (\varphi^2)^n + \frac{\varphi}{\varphi + \frac{1}{\varphi}} \cdot \left(\frac{1}{\varphi^2}\right)^n = \frac{\varphi^{2n-1} + \frac{1}{\varphi^{2n-1}}}{\varphi + \frac{1}{\varphi}}.
It is easy to see, by induction, that if we consider the sequence modulo kk we have
(a6n+1,a6n+2,a6n+3,a6n+4,a6n+5,a6n+6)k(1,0,1,1,0,1). (a_{6n+1}, a_{6n+2}, a_{6n+3}, a_{6n+4}, a_{6n+5}, a_{6n+6}) \stackrel{k}{\equiv} (1, 0, -1, -1, 0, 1).
Therefore another lemma is concluded.
Lemma. For any positive integer nn, we have
kan    n32, and gcd(k,an)=1    n≢32.k \mid a_n \iff n \stackrel{3}{\equiv} 2, \text{ and } \gcd(k, a_n) = 1 \iff n \stackrel{3}{\not\equiv} 2.
Now we prove the third and the final lemma.
Lemma. For any two odd numbers mm and nn such that nmn \mid m, we have
an+12am+12 a_{\frac{n+1}{2}} \mid a_{\frac{m+1}{2}}
Proof. First, we claim that for any integer nn, φ2n+1φ2nZ+\varphi^{2n} + \frac{1}{\varphi^{2n}} \in \mathbb{Z}^+. For n=0,1n = 0, 1 the claim is correct. Assume that the claim is true for n1,n2n-1, n-2. We have
(φ2(n2)+1φ2(n2))Z++(φ2n+1φ2n)=(φ2(n1)+1φ2(n1))Z+(φ2+1φ2). \underbrace{\left(\varphi^{2(n-2)} + \frac{1}{\varphi^{2(n-2)}}\right)}_{\in \mathbb{Z}^+} + \left(\varphi^{2n} + \frac{1}{\varphi^{2n}}\right) = \underbrace{\left(\varphi^{2(n-1)} + \frac{1}{\varphi^{2(n-1)}}\right)}_{\in \mathbb{Z}^+} \left(\varphi^2 + \frac{1}{\varphi^2}\right).
Therefore φ2n+1φ2nZ+\varphi^{2n} + \frac{1}{\varphi^{2n}} \in \mathbb{Z}^+, so the claim is proved, using induction on nn. Now set m=nlm = nl (therefore ll is also odd). We have
an+12=φn+1φnφ+1φ,am+12=φnl+1φnlφ+1φ. a_{\frac{n+1}{2}} = \frac{\varphi^n + \frac{1}{\varphi^n}}{\varphi + \frac{1}{\varphi}}, \quad a_{\frac{m+1}{2}} = \frac{\varphi^{nl} + \frac{1}{\varphi^{nl}}}{\varphi + \frac{1}{\varphi}}.
Therefore
am+12an+12=φnl+1φnlφn+1φn=φ(l1)nφ(l3)n+1φ(l3)n+1φ(l1)n=i2l12(φ2in+1φ2in)j2l32(φ2jn+1φ2jn)=sZ, \begin{align*} \frac{a_{\frac{m+1}{2}}}{a_{\frac{n+1}{2}}} &= \frac{\varphi^{nl} + \frac{1}{\varphi^{nl}}}{\varphi^n + \frac{1}{\varphi^n}} \\ &= \varphi^{(l-1)n} - \varphi^{(l-3)n} + \dots - \frac{1}{\varphi^{(l-3)n}} + \frac{1}{\varphi^{(l-1)n}} \\ &= \sum_{i \stackrel{2}{\equiv} \frac{l-1}{2}} \left( \varphi^{2in} + \frac{1}{\varphi^{2in}} \right) - \sum_{j \stackrel{2}{\equiv} \frac{l-3}{2}} \left( \varphi^{2jn} + \frac{1}{\varphi^{2jn}} \right) = s \in \mathbb{Z}, \end{align*}
So am+12=san+12a_{\frac{m+1}{2}} = s \cdot a_{\frac{n+1}{2}}, hence the lemma.

Back to the problem, let nn be an integer such that an=kma_n = k^m is a power of kk. Assume that n3n \ge 3.
Consider a prime factor of 2n12n-1 like pp. Since both pp and 2n12n-1 are odd numbers, according to the final lemma we have
ap+12an. a_{\frac{p+1}{2}} | a_n.
Again, consider a prime factor of ap+12a_{\frac{p+1}{2}} like qq, we have
qap+12an=km    qk. q | a_{\frac{p+1}{2}} | a_n = k^m \implies q | k.
Therefore gcd(k,ap+12)q\gcd(k, a_{\frac{p+1}{2}}) \ge q. So according to the second lemma, since gcd(k,ap+12)1\gcd(k, a_{\frac{p+1}{2}}) \ne 1 we have
p+12=32    p=30    p=3. \frac{p+1}{2} \stackrel{3}{=} 2 \implies p \stackrel{3}{=} 0 \implies p = 3.
So 2n1=3v2n-1 = 3^v for some integer vv. Since n3n \ge 3 we have v2v \ge 2. Therefore
93v2n1. 9 | 3^v | 2n-1.
Again, according to the final lemma we obtain
a5=a9+12an. a_5 = a_{\frac{9+1}{2}} | a_n.
But a5=k(k3+3k23)a_5 = k(k^3 + 3k^2 - 3). So we must have t=k3+3k23km1t = k^3 + 3k^2 - 3 \mid k^{m-1}. Note that k2k \ge 2, so t17t \ge 17. Thus m1>0m-1 > 0. Let rr be a prime factor of tt. We have
rtkm1rk3+3k23}    r3    r=3. \left. \begin{array}{l} r \mid t \mid k^{m-1} \\ r \mid k^3 + 3k^2 - 3 \end{array} \right\} \implies r \mid 3 \implies r = 3.
Therefore k3+3k33=3hk^3 + 3k^3 - 3 = 3^h, since t17t \ge 17 we have h3h \ge 3. The final equation implies k=3uk = 3u for some integer uu. So we can rewrite it as
27u3+27u3=3h. 27u^3 + 27u - 3 = 3^h.
Since h3h \ge 3, we have 273h27 \mid 3^h but 2727u3+27u327 \nmid 27u^3 + 27u - 3. Contradiction. This means our assumption that such n3n \ge 3 exists was incorrect. So n=1,2n=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.