Number Theory

3 min read#number-theory

The study of the integers — primes, divisibility, and congruence — whose oldest puzzles became the foundation of modern cryptography.

Contents

Number Theory

Number theory is the study of the whole numbers 1, 2, 3, \dots and the surprisingly deep structure hiding inside them. It asks questions a child can pose — which numbers are prime? when does one number divide another? what are the integer solutions of this equation? — and answers them with some of the most beautiful and difficult mathematics ever written. For most of its history it was prized precisely because it was useless: pure thought, untainted by application. Then, in the 1970s, the difficulty of factoring large integers became the lock on every secure connection on Earth.

Two pillars: primes and congruence

Everything in this section grows from two ideas. The first is the prime — a number divisible only by 1 and itself. Primes are the atoms of multiplication: the Fundamental Theorem of Arithmetic says every integer is built from them in exactly one way. The Sieve of Eratosthenes hunts them down; the Ulam Spiral reveals their eerie, half-ordered scatter.

The second pillar is congruence — arithmetic that wraps around a fixed modulus, like a clock. It turns the infinite integers into a finite ring where powers cycle and inverses sometimes exist. Euler's Totient Function counts the units of that ring, Fermat's Little Theorem governs its exponents, and together they make RSA possible.

The road to cryptography

The deepest modern application of number theory is Cryptography. The asymmetry at its heart is purely number-theoretic: multiplying two primes is instant, but factoring their product is believed to be intractable. Euler's Totient Function sizes the key space, Fermat's Little Theorem guarantees that decryption undoes encryption, and Modular Arithmetic is the arena where it all plays out.

Curiosities among the first 100 integers
Of the numbers 1–100: 25 are prime, 8 are members of twin-prime pairs below 100, and exactly 1 (namely 28) is a perfect number after 6. Simple counts, deep questions.

The pages in this section

See also