Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Competitions › IOQM › unit 9 of 14

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.

In this lesson

  1. Linear equations
  2. Simon’s trick
  3. Worked examples
  4. Where marks are lost
  5. Check yourself

1Linear 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).

2Simon’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

  1. Example 1Find positive integers with 1/x + 1/y = 1/6. How many ordered pairs?

    1. (x − 6)(y − 6) = 36.
    2. 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

  1. Number of positive integer solutions of 2x + 3y = 20?

  2. Positive integer pairs with xy = 36?

  3. Can x² + y² = 4003 have integer solutions?

More worked examples

Try each one first, then open the working.

  1. 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

  2. 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

  3. 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

  4. 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.

  • Real numbersClass 10
  • Number theory and puzzlesClass 11

Sit a timed IOQM mock test

Sequences and recursionNext: Digits and number bases