Maths Olympiad Prep

Library / /35 of 87

Combinatorics Difficulty 6.1 National Olympiad Prove it Serbia

Problem:

Given are natural numbers a1,a2,,a2 2016 a_{1}, a_{2}, \ldots, a_{2 \text{ 2016 }} such that for all n,1n22016n, 1 \leqslant n \leqslant 2^{2016}, it holds that
an2016anda1a2an+1 is a perfect square.  a_{n} \leqslant 2016 \quad \text{and} \quad a_{1} a_{2} \cdots a_{n}+1 \text{ is a perfect square. }
Prove that some of the numbers a1,a2,,a22016a_{1}, a_{2}, \ldots, a_{22016} is equal to 1. (Dušan Đukić)

Solution

Solution:

The key fact is that, if a+1=u2a+1=u^{2} and b=v2b=v^{2} are perfect squares and a>ba>b, then ab+1a b+1 is not a square. Indeed, then (uv1)2<ab+1=u2v2v2+1<(uv)2(u v-1)^{2}<a b+1=u^{2} v^{2}-v^{2}+1<(u v)^{2}.

Let p1,p2,,pmp_{1}, p_{2}, \ldots, p_{m} be all the primes less than 2016. For 1n220161 \leqslant n \leqslant 2^{2016} consider the binary sequence cn=(r1,r2,,rm)\mathrm{c}_{n}=\left(r_{1}, r_{2}, \ldots, r_{m}\right), where ri=0r_{i}=0 if the exponent of pip_{i} in the product Pn=a1a2anP_{n}=a_{1} a_{2} \cdots a_{n} is even, and ri=1r_{i}=1 otherwise. Since there are only 2m2^{m} possibilities for the sequence cnc_{n}, for every k220162mk \leqslant 2^{2016}-2^{m} among the sequences ck+1,,ck+2mc_{k+1}, \ldots, \mathrm{c}_{k+2^{m}} there exist two that are equal, say csc_{s} and ctc_{t} (s<ts<t), and then Pt/PsP_{t} / P_{s} is a perfect square not greater than 20162m2016^{2^{m}}.

Suppose that in the sequence (an)\left(a_{n}\right) there are no ones. Take k=112mk=11 \cdot 2^{m}; certainly k+2m<22016k+2^{m}<2^{2016}. We have seen that there exist indices s,t,ks<tk+2ms, t, k \leqslant s<t \leqslant k+2^{m}, such that b=Pt/Psb=P_{t} / P_{s} is a perfect square. However, since a=PsPk2k=20482m>20162mba=P_{s} \geqslant P_{k} \geqslant 2^{k}=2048^{2^{m}}>2016^{2^{m}} \geqslant b, by the fact from the beginning, a+1=Ps+1a+1=P_{s}+1 and ab+1=Pt+1a b+1=P_{t}+1 cannot simultaneously be squares, which is a contradiction.

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 translated into English from sr; metadata (topic, difficulty) added by this project.