HACKER Q&A
📣 AnimalMuppet

Fermat's Last Theorem with More Terms: Why Does It Stop at 3?


Everybody knows the Pythagorean theorem (a^2 + b^2 = c^2). And everybody knows of integer solutions like 3^2 + 4^2 = 5^2.

And most people know of Fermat's Last Theorem, which says that there no integer solutions for powers higher than two.

But that's not true if you allow more than two terms. You still have solutions with squares, such as 3^2 + 4^2 + 12^2 = 13^2. And you get solutions for cubes as well, such as the surprising 3^3 + 4^3 + 5^3 = 6^3.

But you get no such solutions for the fourth power, either with three or four terms. (At least, you get no solutions for small integers, which I have checked via exhaustive search.)

Why? Can anyone explain why that should be?

(I know that you can get a trivial solution with 16 terms, each one 1^4, all added together to give 2^4. I am ignoring such trivial solutions, though I don't know of a good way to state a rigorous exclusion condition.)


  👤 db48x Accepted Answer ✓
It's an open question that has been studied for thousands of years. This type of equation (a polynomial with integer coefficients) is called a Diophantine equation; you can look it up on Wikipedia.

Or watch videos about it:

https://www.youtube.com/watch?v=wymmCdLdPvM&list=PLt5AfwLFPx...


👤 sajid
95800^4 + 217519^4 + 414560^4 = 422481^4