Diophantine equations
IOQM · All sections · about 6 minutes
Equations needing whole-number solutions: linear (ax + by = c), factorable ones, and those settled with remainders or bounds.
Count or find the solutions; IOQM answers are 00–99.
Linear equations
Find one solution, then the rest step by the coefficients: if (x₀, y₀) solves ax + by = c, so does (x₀ + bt/g, y₀ − at/g).
Simon’s trick
Add a constant to factor: xy + 2x + 3y = 15 becomes (x + 3)(y + 2) = 21. Then list factor pairs of 21.
Worked examples
Example 1Find positive integers with 1/x + 1/y = 1/6. How many ordered pairs?
- (x − 6)(y − 6) = 36.
- 36 has 9 positive divisors.
Answer: 9
Where marks are lost
- Missing negative factor pairs when negatives are allowed.
- Forgetting ordered pairs count (a, b) and (b, a) separately.
Exam tips
- ax + by = c has integer solutions iff gcd(a, b) divides c.
- Factor: xy − x − y = k becomes (x − 1)(y − 1) = k + 1.
- Use parity or mod 3, 4 to rule out cases.
Practice questions
Number of positive integer solutions of 2x + 3y = 20?
Positive integer pairs with xy = 36?
Can x² + y² = 4003 have integer solutions?
More worked examples
Try each one first, then open the working.
A floor 75 cm by 120 cm is to be covered with the largest possible square tiles, without cutting any. How many tiles are needed?
Show the working
Start: The tile side must divide both lengths: find the HCF.
Largest tile side = HCF(75, 120) = 15 cm. Tiles = (75 ÷ 15) × (120 ÷ 15) = 5 × 8 = 40.
Answer: 40
Three traffic lights change every 18, 16 and 48 seconds. They all change together at 8:00 a.m. After how many seconds will they next change together?
Show the working
Start: Find the LCM of the three times.
LCM(18, 16, 48) = 144 s.
Answer: 144 s
It is 8 o’clock. What will the clock show after 63 hours?
Show the working
Start: Only the remainder after dividing by 12 matters.
63 = 5 × 12 + 3, so move 3 hours on.
Answer: 11
Add up the proper divisors of 6 (all divisors except 6 itself).
Show the working
Start: List every number that divides 6.
1 + 2 + 3 = 6. It equals 6: a perfect number!
Answer: 6
Practise more
New questions every time, at exam level
A floor 320 cm by 280 cm is to be covered with the largest possible square tiles, without cutting any. How many tiles are needed?
Learn it properly
Full chapters with animations, each with an “Explained simply” version.