Olympiad Maths Prep

Track / Stage 6 / 46 of 400 #1046 of 2000

Problem 1046

National olympiad, first round
Number theory Difficulty 6.0 Prove it

54. Given two odd natural numbers aa and bb. Prove that there exists a natural number kk such that at least one of the numbers bka2b^{k}-a^{2} and akb2a^{k}-b^{2} is divisible by 220182^{2018}.

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

54. We will solve the generalized problem. Given a natural number nn and two odd natural numbers aa and bb. Prove that there exists a natural number kk such that at least one of the numbers b2ka2b^{2 k}-a^{2} and a2kb2a^{2 k}-b^{2} is divisible by 2n2^{n}.

We will use the following known statement: if the number c1c-1 gives a remainder of 2k2^{k} when divided by 2k+12^{k+1}, where k2k \geqslant 2, then c21c^{2}-1 gives a remainder of 2k+12^{k+1} when divided by 2k+22^{k+2}.

Let a21a^{2}-1 be divisible by 2α2^{\alpha} and not divisible by 2α+12^{\alpha+1}, and let b21b^{2}-1 be divisible by 2β2^{\beta} and not divisible by 2β+12^{\beta+1}. Clearly, in this case, α,β2\alpha, \beta \geqslant 2. Then a21a^{2}-1 gives a remainder of 2α2^{\alpha} when divided by 2α+12^{\alpha+1}, and b21b^{2}-1 gives a remainder of 2β2^{\beta} when divided by 2β+12^{\beta+1}. Let αβ\alpha \leqslant \beta, and for brevity, let 2βα=m2^{\beta-\alpha}=m. By the lemma, the number

a2m1=(((a2)2)21 a^{2 m}-1=((\left(a^{2}\right)^{2} \overbrace{}^{\cdots})^{2}-1

gives a remainder of 2β2^{\beta} when divided by 2β+12^{\beta+1}.

We will solve the problem by induction on nn. If nβ+1n \leqslant \beta+1, then k=mk=m will work, since a2ma^{2 m} and b2b^{2} give the same remainder when divided by 2β2^{\beta}. We will make the transition from nn to n+1n+1. By the induction hypothesis, for some kk the number a2kb2a^{2 k}-b^{2} is divisible by 2n2^{n}. If it is also divisible by 2n+12^{n+1}, then the transition is made. Otherwise, it gives a remainder of 2n2^{n} when divided by 2n+12^{n+1}. Let r=2nβ+1r=2^{n-\beta}+1. Then by the lemma, b2(r1)1b^{2(r-1)}-1 gives a remainder of 2n2^{n} when divided by 2n+12^{n+1}. Therefore, b2rb2b^{2 r}-b^{2} gives a remainder of 2n2^{n} when divided by 2n+12^{n+1}. We will use the difference of powers formula:

a2krb2r=(a2kb2)(a2k(r1)+a2k(r2)b2+a2k(r3)b4++b2(r1)) a^{2 k r}-b^{2 r}=\left(a^{2 k}-b^{2}\right)\left(a^{2 k(r-1)}+a^{2 k(r-2)} b^{2}+a^{2 k(r-3)} b^{4}+\ldots+b^{2(r-1)}\right)

The first parenthesis gives a remainder of 2n2^{n} when divided by 2n+12^{n+1}, and the second consists of rr odd terms and, therefore, is odd. Thus, the difference a2krb2ra^{2 k r}-b^{2 r} gives a remainder of 2n2^{n} when divided by 2n+12^{n+1}. But then a2krb2=(a2krb2r)(b2rb2)a^{2 k r}-b^{2}=\left(a^{2 k r}-b^{2 r}\right)-\left(b^{2 r}-b^{2}\right) is divisible by 2n+12^{n+1}, since the expressions in parentheses give the same remainder when divided by 2n+12^{n+1}.

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