Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Number Theory / Deeper structure

Diophantine Equations

Equations where only whole-number answers count, from linear ones you can always solve to Fermat’s famous impossibility.

3 min read · 2 sections · 1 checks

Contents 3 sections
  1. §1All solutions of a linear equation
  2. §2Proving impossibility
  3. ?Check yourself

By the end you can

  • Find all integer solutions of ax+by=cax + by = c
  • Generate Pythagorean triples
  • Use modular arithmetic to prove an equation has no solutions

Helps to know: GCD and the Euclidean Algorithm, Modular Arithmetic

§1All solutions of a linear equation

If (x0,y0)(x_0, y_0) solves ax+by=cax + by = c and d=gcd⁡(a,b)d = \gcd(a, b), then every solution is x=x0+bdtx = x_0 + \frac{b}{d}t, y=y0−adty = y_0 - \frac{a}{d}t for an integer tt.

Example 1Solve 6x+15y=96x + 15y = 9

  1. gcd⁡(6,15)=3\gcd(6,15) = 3 divides 99, so solutions exist.

§2Proving impossibility

Squares are 00 or 11 modulo 44, so x2+y2x^2 + y^2 is never 3(mod4)3 \pmod 4. Hence x2+y2=2023x^2 + y^2 = 2023 has no integer solutions, with no searching needed.

Check yourself

  1. Q1
    Does x2+y2=4003x^2 + y^2 = 4003 have integer solutions? (Note 4003≡3(mod4)4003 \equiv 3 \pmod 4.)