Skip to content
Adaptive

Learn Number Theory

Read the notes, then try the practice. It adapts as you go.When you're ready.

Session Length

~17 min

Adaptive Checks

15 questions

Transfer Probes

8

Lesson Notes

Number theory is the branch of pure mathematics devoted to the study of the integers and integer-valued functions. Often called the 'queen of mathematics,' it investigates properties of numbers such as divisibility, the distribution of prime numbers, and the solvability of equations in whole numbers. From the ancient investigations of Euclid, who proved that there are infinitely many primes, to the modern breakthroughs surrounding the proof of Fermat's Last Theorem by Andrew Wiles, number theory has been a driving force in mathematical discovery for over two millennia.

The subject divides into several major branches. Elementary number theory studies divisibility, congruences, and arithmetic functions without relying on techniques from other mathematical areas. Analytic number theory employs tools from calculus and complex analysis to understand the distribution of primes, most famously through the Riemann zeta function and the Prime Number Theorem. Algebraic number theory extends the notion of integers to algebraic number fields, using structures such as rings of integers and ideals to attack problems like unique factorization. Computational number theory focuses on algorithms for primality testing, integer factorization, and discrete logarithms, which form the backbone of modern cryptographic systems.

Beyond its theoretical elegance, number theory has become essential to the modern digital world. The RSA cryptosystem, elliptic-curve cryptography, and the Diffie-Hellman key exchange all rest on number-theoretic hardness assumptions. Error-correcting codes, hash functions, and random-number generators also draw heavily on results from the field. At the same time, longstanding open problems such as the Riemann Hypothesis, the Goldbach Conjecture, and the Twin Prime Conjecture continue to inspire new research, ensuring that number theory remains one of the most active and rewarding areas of mathematical inquiry.

You'll be able to:

  • Apply the fundamental theorem of arithmetic and Euclidean algorithm to solve problems involving divisibility and primes
  • Analyze modular arithmetic systems and their applications in solving linear and quadratic congruence equations
  • Evaluate the distribution of prime numbers using analytic methods including the prime number theorem and Riemann zeta function
  • Distinguish between algebraic and transcendental numbers and explain their significance in Diophantine approximation theory

One step at a time.

Key Concepts

Prime Numbers

Natural numbers greater than 1 that have no positive divisors other than 1 and themselves. Primes are the fundamental building blocks of all integers through the Fundamental Theorem of Arithmetic.

Example: The number 29 is prime because no integer between 2 and 28 divides it evenly, whereas $28 = 2 \times 2 \times 7$ is composite.

Fundamental Theorem of Arithmetic

Every integer greater than 1 can be represented uniquely as a product of prime numbers, up to the order of the factors. This guarantees a single canonical prime factorization for every positive integer.

Example: The integer 360 factors uniquely as $2^3 \times 3^2 \times 5$, and no other combination of primes produces 360.

Modular Arithmetic

A system of arithmetic for integers in which numbers 'wrap around' upon reaching a certain value called the modulus. Two integers are congruent modulo $n$ if their difference is divisible by $n$.

Example: 17 is congruent to 2 modulo 5 (written $17 \equiv 2 \pmod{5}$) because $17 - 2 = 15$ is divisible by 5. Clock arithmetic is a familiar base-12 example.

Euclidean Algorithm

An efficient method for computing the greatest common divisor (GCD) of two integers by repeatedly applying the division algorithm. It is one of the oldest known algorithms still in widespread use.

Example: To find $\gcd(252, 105)$: $252 = 2 \times 105 + 42$, then $105 = 2 \times 42 + 21$, then $42 = 2 \times 21 + 0$, so $\gcd = 21$.

Fermat's Little Theorem

If $p$ is a prime and $a$ is an integer not divisible by $p$, then $a^{p-1} \equiv 1 \pmod{p}$. This result underpins many primality tests and cryptographic protocols.

Example: With $a = 2$ and $p = 7$: $2^6 = 64$, and 64 divided by 7 leaves remainder 1, confirming $2^6 \equiv 1 \pmod{7}$.

Euler's Totient Function

The function $\varphi(n)$ counts the number of integers from 1 to $n$ that are coprime to $n$. It generalizes Fermat's Little Theorem and is central to the RSA cryptosystem.

Example: $\varphi(12) = 4$, because exactly four numbers less than 12 are coprime to it: 1, 5, 7, and 11.

Diophantine Equations

Polynomial equations where only integer (or sometimes rational) solutions are sought. Named after Diophantus of Alexandria, they include famous problems such as Fermat's Last Theorem.

Example: The equation $x^2 + y^2 = z^2$ has infinitely many integer solutions called Pythagorean triples, such as $(3, 4, 5)$ and $(5, 12, 13)$.

Chinese Remainder Theorem

A result stating that if one knows the remainders of an integer when divided by several pairwise coprime moduli, one can determine the remainder when divided by the product of those moduli uniquely.

Example: If $x \equiv 2 \pmod{3}$ and $x \equiv 3 \pmod{5}$, then $x \equiv 8 \pmod{15}$. The theorem guarantees a unique solution modulo 15.

More terms are available in the glossary.

Explore your way

Choose a different way to engage with this topic — no grading, just richer thinking.

Explore your way — choose one:

Explore with AI →

Concept Map

See how the key ideas connect. Nodes color in as you practice.

Worked Example

Walk through a solved problem step-by-step. Try predicting each step before revealing it.

Adaptive Practice

This is guided practice, not just a quiz. Hints and pacing adjust in real time.

Small steps add up.

What you get while practicing:

  • Math Lens cues for what to look for and what to ignore.
  • Progressive hints (direction, rule, then apply).
  • Targeted feedback when a common misconception appears.

Teach It Back

The best way to know if you understand something: explain it in your own words.

Keep Practicing

More ways to strengthen what you just learned.

Number Theory Adaptive Course - Learn with AI Support | PiqCue