Maths Olympiad Prep

Library / Seventeenth Stars of Mathematics Competition /1 of 5

Seventeenth Stars of Mathematics Competition

Number theory Difficulty 5.4 AIME, harder Prove it Romania

Let aa and bb be positive integers such that b−ab-a is a prime. Prove that
(an+a+1)(bn+b+1)(a^n + a + 1)(b^n + b + 1)
is not the square of an integer for infinitely many positive integers nn.

Solution

Suppose, if possible, that (an+a+1)(bn+b+1)(a^n + a + 1)(b^n + b + 1) is a square for all but finitely many positive integers nn. Then
ab≡(ap+1+a+1)(bp+1+b+1)(ap−2+a+1)(bp−2+b+1) ab \equiv \frac{(a^{p+1} + a + 1)(b^{p+1} + b + 1)}{(a^{p-2} + a + 1)(b^{p-2} + b + 1)}
and
(a+2)(b+2)≡(ap−1+a+1)(bp−1+b+1)(modp) (a + 2)(b + 2) \equiv (a^{p-1} + a + 1)(b^{p-1} + b + 1) \pmod{p}
are both quadratic residues modulo all but finitely many primes pp. Consequently, abab and (a+2)(b+2)(a+2)(b+2) are both squares. (It is a fact that a positive integer which is a quadratic residue modulo all but finitely many primes is itself a square.)
Let b−a=qb-a = q, a prime, and let d=gcd⁡(a,b)d = \gcd(a, b). Clearly, d=1d=1 or d=qd=q. If d=qd=q, then a=(c−1)qa = (c-1)q and b=cqb = cq for some integer c>1c > 1. Hence c(c−1)q2=abc(c-1)q^2 = ab is a square, forcing c(c−1)c(c-1) to be a square. Coprimality of cc and c−1c-1 forces in turn cc and c−1c-1 to be both squares. This is impossible, since two squares of non-zero integers are at least 3 distance apart. Consequently, aa is coprime to bb, so they are both squares.

Since aa and bb are squares, a+2a + 2 and b+2b + 2 are not; and since (a+2)(b+2)(a + 2)(b + 2) is a square, a+2a + 2 is not coprime to b+2b + 2 (otherwise they would both be squares). Clearly, gcd⁡(a+2,b+2)\gcd(a+2, b+2) divides (b+2)−(a+2)=b−a=q(b+2)-(a+2) = b-a = q, so gcd⁡(a+2,b+2)=q\gcd(a+2, b+2) = q. As before, a+2=(c′−1)qa + 2 = (c' - 1)q and b+2=c′qb + 2 = c'q for some integer c′>1c' > 1, and we reach a contradiction along the same lines. This ends the proof.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.