Unique Solution to the Exponential Diophantine 3^x + 4^y = 5^z
Board: Olympiad | Grade: Olympiad | Chapter: Diophantine Equations
Problem
Find the sum of $x^3 + y^3 + z^3$ over all triples of positive integers $(x, y, z)$ satisfying $$3^x + 4^y = 5^z.$$
Step-by-Step Textbook Solution
First test small moduli to constrain the parities of $x$ and $z$:
- Modulo $3$: $0 + 1^y \equiv (-1)^z \pmod 3 \implies (-1)^z \equiv 1 \pmod 3$, so $z$ is even. Write $z = 2k$ ($k \ge 1$).
- Modulo $4$: $(-1)^x + 0 \equiv 1^z \pmod 4 \implies (-1)^x \equiv 1 \pmod 4$, so $x$ is even. Write $x = 2a$ ($a \ge 1$).
Substituting $x = 2a$ and $z = 2k$ gives a difference of squares: $$4^y = 5^{2k} - 3^{2a} = (5^k - 3^a)(5^k + 3^a).$$ Because $4^y = 2^{2y}$ is a power of $2$, both $5^k - 3^a$ and $5^k + 3^a$ must be powers of $2$. Let $5^k - 3^a = 2^u$ and $5^k + 3^a = 2^v$ with $1 \le u < v$ and $u + v = 2y$. Adding the two equations: $$2 \cdot 5^k = 2^u + 2^v = 2^u(1 + 2^{v-u}).$$ Since $1 + 2^{v-u}$ is odd (as $v > u$) and $5^k$ is odd, comparing $2$-adic valuations forces $u = 1$. Thus $5^k - 3^a = 2$ and $5^k + 3^a = 2^{2y-1}$, which averages to: $$5^k = 2^{2y-2} + 1.$$
Now analyze by cases on $y \ge 1$:
- If $y = 1$: $5^k = 2^0 + 1 = 2$, impossible.
- If $y = 2$: $5^k = 4 + 1 = 5 \implies k = 1$, giving $3^a = 5 - 2 = 3 \implies a = 1$. This yields $(x, y, z) = (2, 2, 2)$, and indeed $3^2 + 4^2 = 5^2$.
- If $y \ge 3$: then $2y - 2 \ge 4$, so $2^{2y-2} \equiv 0 \pmod 8$, meaning $5^k \equiv 1 \pmod 8$. Since $5^1 \equiv 5 \pmod 8$ and $5^2 \equiv 1 \pmod 8$, $k$ must be even. However, if $k$ is even, then $5^k \equiv (-1)^k \equiv 1 \pmod 3$, whereas $2^{2y-2} + 1 = 4^{y-1} + 1 \equiv 1 + 1 = 2 \pmod 3$, a contradiction!
Therefore $(2, 2, 2)$ is the unique solution, and $$x^3 + y^3 + z^3 = 2^3 + 2^3 + 2^3 = 24.$$
NityaDhi Solution (Intuitive Method)
Once you factor $4^y = (5^k - 3^a)(5^k + 3^a)$, immediately check $\gcd(5^k - 3^a, 5^k + 3^a)$: it divides both $2 \cdot 5^k$ and $2 \cdot 3^a$, so it is $2$. Since both factors are powers of $2$, the smaller factor must be $2$, giving $5^k = 2^{2y-2} + 1$ in one step. Then compare $\bmod 8$ and $\bmod 3$ simultaneously:
- $\bmod 8$ forces $k$ even for $y \ge 3$.
- $\bmod 3$ forces $5^k \equiv 2 \pmod 3$, which forces $k$ odd! That parity clash on $k$ kills all $y \ge 3$ instantly.
Common Mistakes to Avoid
- Assuming $3^x + 4^y = 5^z$ has no other solutions by inspection without proving uniqueness: In Olympiad grading or integer-answer variants, missing a potential second solution like $(2,2,2)$ vs larger powers costs full marks.
- Trying to apply Fermat's Last Theorem: FLT only covers equal exponents $x = y = z \ge 3$, whereas here $x, y, z$ are independent variables.