Math Playground
Numbers

Diophantine equations

Equations where you only want whole-number solutions — and they're hard.

Equations where you only want whole-number (or integer) solutions. Often hard.

Try it

Find integers x, y with 3x + 5y = 22

x = 4, y = 2 works (12 + 10 = 22). Many other solutions.

Fermat's Last Theorem (xⁿ + yⁿ = zⁿ has no solutions for n > 2) is the most famous Diophantine problem.