maths.free › Number Theory › Diophantine equations
Diophantine equations
Integer solutions: linear equations via Bézout, Pythagorean triples, Fermat.
ax + by = c has integer solutions exactly when gcd(a, b) divides c, and the extended Euclidean algorithm finds them. Pythagorean triples are (m² − n², 2mn, m² + n²). Fermat's last theorem says xⁿ + yⁿ = zⁿ has none for n ≥ 3 — proved in 1995. Picture it: lattice points on a line; the solutions are evenly spaced. Think it: Hilbert's tenth problem showed no algorithm can decide all Diophantine equations.
Mfano wenye matokeo: gcd(12, 18)
Hatua kwa hatua
- \gcd(12, 18)
Use Euclid's algorithm: replace the larger number by its remainder on division by the smaller, until the remainder is 0.
- 18 = 1 \times 12 + 6
Divide 18 by 12: quotient 1, remainder 6.
- 12 = 2 \times 6 + 0
Divide 12 by 6: quotient 2, remainder 0.
- \gcd(12, 18) = 6
The last non-zero remainder is 6.
Lafunua jibu
Symbols used here
b is a multiple of a; the largest number dividing both.
The exponent b must be raised to for x; ln uses base e.
Add a_k for k = 1 up to n.
Multiply a_k for k = 1 up to n.
Naturals, integers, rationals, reals, complex numbers.
n divides a − b; a and b have the same remainder.
Count of 1..n coprime to n; number of primes up to x.
The remainders 0…n−1 with clock arithmetic.
What is left after dividing a by n.
How to: Diophantine equations
- Use Euclid's algorithm: replace the larger number by its remainder on division by the smaller, until the remainder is 0.
- Divide 18 by 12: quotient 1, remainder 6.
- Divide 12 by 6: quotient 2, remainder 0.
- The last non-zero remainder is 6.
Questions people ask
Why are primes so important?
Every integer factors into primes in exactly one way, so primes are the atoms of multiplication. Cryptography relies on that factoring being easy to state and hard to do.
How do I tell whether a big number is prime?
Trial division up to the square root works for small numbers. For large ones, probabilistic tests (Miller–Rabin) give an answer that is wrong with negligible probability, and deterministic tests (AKS) exist but are slower.
Jaribu kufanya mambo yako mwenyewe
Mengi zaidi katika Number Theory
Prime factorisationPrime numbersGCD and LCMModular arithmeticDivisorsSequencesNumber basesFermat's little theorem and Euler's theoremRSA: cryptography from number theory