Equations in Integers
Solve equations where the unknowns must be integers. Core techniques: factoring into integer divisor pairs, parity arguments, modular obstructions, and difference-of-squares decompositions.
Start solving
Pick a puzzle below — each one has an interactive simulator you can play right away.
An equation in integers (or Diophantine equation) is one where we require solutions to be whole numbers — usually integers or natural numbers.
Learn the methodRead guide
Equations in Integers
An equation in integers (or Diophantine equation) is one where we require solutions to be whole numbers — usually integers or natural numbers.
The key difference from ordinary algebra: we can no longer divide freely or take square roots. Instead, the structure of the integers themselves — divisibility, parity, and modular arithmetic — becomes the main tool.
Core strategy: factor and list divisor pairs
Many integer equations can be rearranged into the form
where and are integer expressions and is a known constant. Since has finitely many divisor pairs, we list them all and check which ones give valid solutions.
Example. Solve in natural numbers.
Rewrite as . The positive divisor pairs of are and . Setting , gives , . Setting , gives , .
Parity arguments
When both sides of an equation must match in parity (odd/even), many candidate solutions are eliminated.
Example. If , , are all odd, then and are even while is also even. Checking whether is possible modulo often reveals a contradiction.
Modular obstructions
Reduce the equation modulo a small number (, , , , , ...) to show that no solution can exist, or to narrow the possibilities.
Example. Perfect squares are or . If an equation forces a square to be , there is no solution.
Problems in this set
The first three problems are for discussion — they introduce the factoring and parity techniques. The remaining problems are for independent work, ordered roughly by difficulty.