In one sentence
What makes integer solutions hard is that there are “infinitely many possibilities”. The three common methods all do the same thing: turn infinitely many into finitely many.
- Factoring: rewrite the equation as a constant. An integer has only finitely many divisors.
- Estimation (bounding): use inequalities to lock the unknowns into a finite range, then check each case.
- Congruences: pick a modulus for which the two sides can never leave the same remainder, and the possibilities drop straight to zero.
Each of the three methods in action
Step 1 / 6- Factoring: first build a product
. The left side looks like the first three terms of expanded; it is only missing the constant . Add to both sides.
Stop 1 · Factoring
Spot it: an term together with linear terms in and , or a difference of squares. Do it: add a constant to build a product, then list the divisors: each split gives a small system of equations to solve.
Predict first
becomes . There are ways to split into two integer factors (counting negative factors and order). For how many of them do you get integer and ?
and differ by , so they must have the same parity. Splits of like and are one odd and one even, so they give half-integers and have to be thrown away. Only , and their negatives remain: splits, giving .
Click all twelve buttons:
Stop 2 · Estimation
Spot it: sums of squares, sums of reciprocals, or one side that clearly “grows faster” than the other. Do it: put the unknowns in order of size or complete the square to get an inequality, which limits the smallest (or largest) unknown to just a few values.
One problem, several solutions
Find positive integers with .
Estimation
, so . Also , so , which gives , that is, .
You only need to check , working out :
- : , ✓
- : , ✓
- : , is not an integer ✗
- : , ✓
CostNo clever rewriting needed, but you must check 4 candidates.
Factoring
Clear the denominators: , that is, . Add to both sides:
and both are greater than , so are positive divisors: , , .
This gives .
CostYou must think of adding 16 after clearing denominators; after that it is one step.
Both methods find the same three solutions. When factoring is possible it is usually faster; when it is not (for example, a sum of reciprocals of three unknowns), estimation still works.
Stop 3 · Congruences
Spot it: the problem asks you to “prove there are no integer solutions”, or the equation has squares or cubes. Do it: choose a modulus that makes some terms vanish and leaves the powers as few remainders as possible.
Mod and mod each settle it in one blow (and so, of course, do the multiples and ); mod all leave surviving cells. Good first choices:
| If the equation has | Try the modulus | Because |
|---|---|---|
| squares | , , | leaves only (mod , ) or (mod ) |
| cubes | , | leaves only |
| a coefficient that is a multiple of | that term simply vanishes |
How to choose
There is no method that always works. Try every one of the four equations with each of the three methods on the workbench above and you get this table:
| Factoring | Estimation | Congruences | |
|---|---|---|---|
| ✓ four solutions | can't fence it in | only narrows it down | |
| ✓ four solutions | can't fence it in | only narrows it down | |
| doesn't factor | ✓ check 121 cells | only narrows it down | |
| doesn't factor | can't fence it in | ✓ no solutions |
Practice
How many positive integer solutions does have?
Find all positive integers for which there is a positive integer with .
Positive integers satisfy . How many such triples are there?
Prove that has no integer solutions.