Maths Olympiad Prep

Track / Stage 6 / 146 of 400 #1786 of 2604

Problem 1786

National Olympiad, first round
Number theory Difficulty 6.2 Prove it Canadian Mathematical Olympiad · Canada

Find all ordered pairs (a,b)(a, b) such that aa and bb are integers and 3a+7b3^{a} + 7^{b} is a perfect square.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Solution:
It is obvious that aa and bb must be non-negative.
Suppose that 3a+7b=n23^{a} + 7^{b} = n^{2}. We can assume that nn is positive. We first work modulo 44. Since 3a+7b=n23^{a} + 7^{b} = n^{2}, it follows that
n2≡(−1)a+(−1)b(mod4) n^{2} \equiv (-1)^{a} + (-1)^{b} \pmod{4}
Since no square can be congruent to 22 modulo 44, it follows that we have either (i) aa is odd and bb is even or (ii) aa is even and bb is odd.

Case (i): Let b=2cb = 2c. Then
3a=(n−7c)(n+7c). 3^{a} = (n - 7^{c})(n + 7^{c}) .
It cannot be the case that 33 divides both n−7cn - 7^{c} and n+7cn + 7^{c}. But each of these is a power of 33. It follows that n−7c=1n - 7^{c} = 1, and therefore
3a=2⋅7c+1. 3^{a} = 2 \cdot 7^{c} + 1 .
If c=0c = 0, then a=1a = 1, and we obtain the solution a=1,b=0a = 1, b = 0. So suppose that c≥1c \geq 1. Then 3a≡1(mod7)3^{a} \equiv 1 \pmod{7}. This is impossible, since the smallest positive value of aa such that 3a≡1(mod7)3^{a} \equiv 1 \pmod{7} is given by a=6a = 6, and therefore all aa such that 3a≡1(mod7)3^{a} \equiv 1 \pmod{7} are even, contradicting the fact that aa is odd.

Case (ii): Let a=2ca = 2c. Then
7b=(n−3c)(n+3c). 7^{b} = (n - 3^{c})(n + 3^{c}) .
Thus each of n−3cn - 3^{c} and n+3cn + 3^{c} is a power of 77. Since 77 cannot divide both of these, it follows that n−3c=1n - 3^{c} = 1, and therefore
7b=2⋅3c+1 7^{b} = 2 \cdot 3^{c} + 1
Look first at the case c=1c = 1. Then b=1b = 1, and we obtain the solution a=2,b=1a = 2, b = 1. So from now on we may assume that c>1c > 1. Then 7b≡1(mod9)7^{b} \equiv 1 \pmod{9}. The smallest positive integer bb such that 7b≡1(mod9)7^{b} \equiv 1 \pmod{9} is given by b=3b = 3. It follows that bb must be a multiple of 33. Let b=3db = 3d. Note that dd is odd, so in particular d≥1d \geq 1.

Let y=7dy = 7^{d}. Then y3−1=2⋅3cy^{3} - 1 = 2 \cdot 3^{c}, and therefore
2⋅3c=(y−1)(y2+y+1). 2 \cdot 3^{c} = (y - 1)(y^{2} + y + 1) .
It follows that y−1=2⋅3uy - 1 = 2 \cdot 3^{u} for some positive uu, and that y2+y+1=3vy^{2} + y + 1 = 3^{v} for some v≥2v \geq 2. But since
3y=(y2+y+1)−(y−1)2, 3y = (y^{2} + y + 1) - (y - 1)^{2},
it follows that 3∣y3 \mid y, which is impossible since 3∣(y−1)3 \mid (y - 1).

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