
Number Theory
I find Number theory one of the very hardest parts of Mathematics so this is probably the most contrived part of this wiki. You will find a struggle here but hopefully if you are having a hard time yourself, there maybe some value to you here below.
My fascination with Mathematics really started with numbers. No matter how hard I tried, I couldn’t really figure out what they were (Ontologically). Did they have a basis in reality and if not, what basis did they have and moreover, why did Reality and Math track so well if they didn’t have a basis in reality.
The plain idea
Number theory is the study of the whole numbers, , and especially of how they break into pieces by multiplication. Its atoms are the primes: numbers greater than 1 whose only divisors are 1 and themselves, .
The questions are so simple a child can ask them and so hard that some have stood unanswered for centuries. Is every even number bigger than 2 the sum of two primes? (Goldbach, 1742: still open.) Are there infinitely many pairs of primes two apart, like 11 and 13? (Still open, though since Yitang Zhang’s 2013 breakthrough we know there are infinitely many pairs within 246 of each other.) Gauss called number theory “the queen of mathematics”, and this mix of innocence and difficulty is why.
Why it matters
For two thousand years number theory was the purest of pure mathematics, admired precisely because it was useless. Then, in the 1970s, it became the lock on the world’s front door. RSA encryption and its descendants rest on one fact: multiplying two big primes is easy, but splitting the product back into them is (as far as anyone knows) extremely hard. Every time you see a padlock in your browser, number theory is working.
And it is still moving. Because a large quantum computer could break RSA and elliptic-curve cryptography using Shor’s algorithm, NIST published its first post-quantum cryptography standards in 2024 (lattice-based schemes such as ML-KEM). The old question “what are numbers?” turns out to have a very practical edge.
An everyday analogy: Lego bricks
Every whole number bigger than 1 can be built by multiplying primes, and, crucially, in only one way (apart from the order). This is the Fundamental Theorem of Arithmetic. Primes are the Lego bricks; every number is a model built from them; and every model has a unique parts list.
No other set of primes multiplies to 360. That uniqueness is what makes primes the right atoms.
A worked example: why there are infinitely many primes
Euclid’s proof, about 300 BC, still the most elegant argument in mathematics:
- Suppose there were only finitely many primes, .
- Build .
- Divide by any : the remainder is always . So no prime on the list divides .
- But , so it has some prime factor, and that prime is not on the list. Contradiction.
Try it: , which is prime. , not prime, but its factors 59 and 509 are new primes. Either way, the list was incomplete.
Clock arithmetic
Much of modern number theory happens “on a clock”: modular arithmetic, where we keep only remainders. On a 12-hour clock, . We write . This is exactly the cyclic group , which is where number theory and abstract algebra shake hands. Fermat’s little theorem says that for a prime and any not divisible by ,
Check: , so . ✔ This little fact is the engine inside RSA.
On my question: what are numbers?
As for the ontological puzzle above, there are three main answers on the table. Platonists say numbers exist independently and we discover them. Formalists say mathematics is a game with symbols and rules. Structuralists say a number is just a position in a pattern: “3” means “the thing after 2 and before 4” and nothing more. In Set Theory, the von Neumann construction makes this concrete: , , , and so on. Why such constructions fit the physical world so well is what Eugene Wigner called “the unreasonable effectiveness of mathematics”. Nobody has settled it. You are in good company.
Common misconceptions
- “1 is prime.” It isn’t, by convention, precisely so that factorisation stays unique.
- “Primes thin out and eventually stop.” They thin out (near about one number in is prime, the Prime Number Theorem) but never stop.
- “Big primes are hard to find.” Testing whether a number is prime is fast; it is factoring that is hard.
- “Number theory is finished.” The Riemann Hypothesis, about the exact distribution of primes, is one of the million-dollar Millennium Prize Problems.
How it connects
- Groups and Rings: the integers mod are the textbook examples.
- Fields: when is prime, arithmetic mod is a field, the setting for most cryptography.
- Abstract Algebra and Set Theory for the foundations.
The truth revealed: the simplest objects in mathematics are also the most mysterious, and the mystery is guarding your bank account.
The number systems
- Natural Numbers Rational Numbers Real Numbers Complex Numbers Quarternions Constructive Reals Hyper Reals Surreals Binary Theory Binary Coded Decimal Signed & Unsigned Representations One’s Complement Two’s Complement
