Maths Olympiad Prep

Library / XVI-th Junior Balkan Mathematical Olympiad /2 of 2

XVI-th Junior Balkan Mathematical Olympiad

Number theory Difficulty 5.9 AIME, harder Prove it North Macedonia

Find all positive integers xx, yy, zz and tt such that
2x⋅3y+5z=7t. 2^x \cdot 3^y + 5^z = 7^t.

Solution

Reducing modulo 33 we get 5z≡15^z \equiv 1, therefore zz is even, z=2cz = 2c, c∈Nc \in \mathbb{N}.
Next we prove that tt is even.
Obviously, t≥2t \ge 2. Let us suppose that tt is odd, say t=2d+1t = 2d+1, d∈Nd \in \mathbb{N}. The equation becomes 2x⋅3y+25c=7⋅49d2^x \cdot 3^y + 25^c = 7 \cdot 49^d. If x≥2x \ge 2, reducing modulo 44 we get 1≡31 \equiv 3, a contradiction. And if x=1x=1, we have 2⋅3y+25c=7⋅49d2 \cdot 3^y + 25^c = 7 \cdot 49^d and reducing modulo 2424 we obtain
2⋅3y+1≡7⇒24∣2(3y−3), i.e. 4∣3y−1−1 2 \cdot 3^y + 1 \equiv 7 \Rightarrow 24 \mid 2(3^y - 3), \text{ i.e. } 4 \mid 3^{y-1} - 1
which means that y−1y-1 is even. Then y=2b+1y = 2b+1, b∈Nb \in \mathbb{N}. We obtain 6⋅9b+25c=7⋅49d6 \cdot 9^b + 25^c = 7 \cdot 49^d, and reducing modulo 55 we get (−1)b=2(−1)d(-1)^b = 2(-1)^d which is false for all b,d∈Nb, d \in \mathbb{N}. Hence tt is even, t=2d,d∈Nt=2d, d \in \mathbb{N}, as claimed.

Now the equation can be written as
2x⋅3y+25d=49d⇔2x⋅3y=(7d−5c)(7d+5c). 2^x \cdot 3^y + 25^d = 49^d \Leftrightarrow 2^x \cdot 3^y = (7^d - 5^c)(7^d + 5^c).
As gcd⁡(7d−5c,7d+5c)=2\gcd(7^d - 5^c, 7^d + 5^c) = 2 and 7d+5c>27^d + 5^c > 2, there exist exactly three possibilities:
(1){7d−5d=2x−17d+5d=2⋅3y (1) \begin{cases} 7^d - 5^d = 2^{x-1} \\ 7^d + 5^d = 2 \cdot 3^y \end{cases}
(2){7d−5d=2⋅3y7d+5d=2x−1 (2) \begin{cases} 7^d - 5^d = 2 \cdot 3^y \\ 7^d + 5^d = 2^{x-1} \end{cases}
(3){7d−5d=27d+5d=2x−1⋅3y. (3) \begin{cases} 7^d - 5^d = 2 \\ 7^d + 5^d = 2^{x-1} \cdot 3^y \end{cases}.

### Case 1.
We have 7d=2x−2+3y7^d = 2^{x-2} + 3^y and reducing modulo 33, we get 2x−2≡1(mod3)2^{x-2} \equiv 1 \pmod{3}, hence x−2x-2 is even, i.e. x=2a+2x=2a+2, a∈Na \in \mathbb{N}, where a>0a>0, since a=0a=0 would mean 3y+1=7d3^y+1=7^d which is impossible (even=odd).
We obtain
7d−5d≡2⋅4a(mod4)⇒7d≡1(mod4)⇒d=2e,e∈N. 7^d - 5^d \equiv 2 \cdot 4^a \pmod{4} \Rightarrow 7^d \equiv 1 \pmod{4} \Rightarrow d=2e, e \in \mathbb{N}.
Then we have
49c−5d≡2⋅4a(mod8)⇒5c≡1(mod8)⇒c=2f,f∈N. 49^c - 5^d \equiv 2 \cdot 4^a \pmod{8} \Rightarrow 5^c \equiv 1 \pmod{8} \Rightarrow c=2f, f \in \mathbb{N}.
We obtain 49c−25f=2⋅4a⇒0≡2(mod3)49^c - 25^f = 2 \cdot 4^a \Rightarrow 0 \equiv 2 \pmod 3, false. In conclusion, in this case there are no solutions to the equation.

### Case 2.
From 2x−1=7d+5c≥122^{x-1} = 7^d + 5^c \ge 12 we obtain x≥5x \ge 5. Then 7d+5c≡0(mod4)7^d + 5^c \equiv 0 \pmod 4, i.e. 3d+1≡0(mod4)3^d + 1 \equiv 0 \pmod 4, hence dd is odd. As 7d=5c+2⋅3y≥117^d = 5^c + 2 \cdot 3^y \ge 11, we get d≥2d \ge 2, hence d=2e+1d=2e+1, e∈Ne \in \mathbb{N}.
As in the previous case, from 7d=22+3y7^d = 2^2 + 3^y reducing modulo 33 we obtain x=2a+2x=2a+2 (because x≥5x \ge 5). We get 7d=4a+3y7^d = 4^a + 3^y i.e. 7⋅49c=4a+3y7 \cdot 49^c = 4^a + 3^y, hence, reducing modulo 88 we obtain 7≡3y7 \equiv 3^y which is false, because 3y3^y is congruent either to 11 (if yy is even) or to 33 (if yy is odd). In conclusion, in this case there are no solutions to the equation.

### Case 3.
From 7d=5c+27^d = 5^c + 2 it follows that the last digit of 7d7^d is 77, hence d=4k+1d=4k+1, k∈Nk \in \mathbb{N}.
If c≥2c \ge 2, from 74k+1=5c+27^{4k+1} = 5^c + 2 reducing modulo 2525 we obtain 7≡2(mod2)7 \equiv 2 \pmod 2 which is false.
For c=1c=1 we get d=1d=1 and the solution x=3,y=1,z=t=2x=3, y=1, z=t=2.

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.