Olympiad Maths Prep

Track / Stage 6 / 139 of 400 #1139 of 2000

Problem 1139

National olympiad, first round
Number theory Difficulty 6.2 Prove it

II. (This question is worth 40 points) Given positive integers u,vu, v. The sequence {an}\left\{a_{n}\right\} is defined as follows: a1=u+va_{1}=u+v, for integers m1m \geq 1.
{a2m=am+u,a2m+1=am+v. \left\{\begin{array}{l} a_{2 m}=a_{m}+u, \\ a_{2 m+1}=a_{m}+v . \end{array}\right.

Let Sm=a1+a2++am(m=1,2,)S_{m}=a_{1}+a_{2}+\cdots+a_{m}(m=1,2, \cdots). Prove: The sequence {Sn}\left\{S_{n}\right\} contains infinitely many perfect squares.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Prove that for positive integers nn, we have
S2m1=a1+(a2+a3)+(a4+a5)++(a2m2+a2m1)=u+v+(a1+u+a1+v)+(a2+u+a2+v)++(ar1+u+ar1+v)=2n(u+v)+2Sr1 \begin{array}{l} S_{2 m-1}=a_{1}+\left(a_{2}+a_{3}\right)+\left(a_{4}+a_{5}\right)+\cdots+\left(a_{2 m-2}+a_{2 m-1}\right) \\ =u+v+\left(a_{1}+u+a_{1}+v\right)+\left(a_{2}+u+a_{2}+v\right)+\cdots+\left(a_{r-1}+u+a_{r-1}+v\right) \\ =2^{n}(u+v)+2 S_{r-1} \text {, } \\ \end{array}

Therefore,
S2n1=2n1(u+v)+2S2n11=2n1(u+v)+2(2n2(u+v)+2S2n21)=22n1(u+v)+22S2n21==(n1)2n1(u+v)+2n1(u+v)=(u+v)n2n1. \begin{aligned} S_{2^{n-1}} & =2^{n-1}(u+v)+2 S_{2^{n-1}-1}=2^{n-1}(u+v)+2\left(2^{n-2}(u+v)+2 S_{2^{n-2}-1}\right) \\ & =2 \cdot 2^{n-1}(u+v)+2^{2} S_{2^{n-2}-1} \\ & =\cdots=(n-1) \cdot 2^{n-1}(u+v)+2^{n-1}(u+v) \\ & =(u+v) n \cdot 2^{n-1} . \end{aligned}

Let u+v=2kqu+v=2^{k} \cdot q, where kk is a non-negative integer and qq is an odd number. Choose n=ql2n=q \cdot l^{2}, where ll is any positive integer satisfying l=k1(mod2)l=k-1(\bmod 2). At this point, S2n1=q2l22k1αq2S_{2^{n-1}}=q^{2} l^{2} \cdot 2^{k-1-\alpha q^{2}}. Noting that qq is odd, we have
k1+ql2=k1+l2=k1+(k1)2=k(k1)=0(mod2). k-1+q \cdot l^{2}=k-1+l^{2}=k-1+(k-1)^{2}=k(k-1)=0(\bmod 2) .

Thus, S2n1S_{2^{n-1}} is a perfect square. Since there are infinitely many ll, the sequence {Sn}\left\{S_{n}\right\} contains infinitely many perfect squares.
40 points

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.