Number Theory Formulas
Divisibility, GCD and LCM, divisor functions and classic congruence theorems. 8 formulas, each with variables and a worked example.
- GCD–LCM RelationFor positive integers, the product of the greatest common divisor and the least common multiple equals the product of the numbers.
- Euclidean AlgorithmThe Euclidean algorithm finds the greatest common divisor by repeatedly replacing the larger number with the remainder of the division, until the remainder is zero.
- Division AlgorithmFor integers and there are unique integers (quotient) and (remainder) with and .
- Number of DivisorsOnce a number is written as a product of prime powers, the number of its positive divisors is the product of the exponents each increased by one.
- Sum of DivisorsThe sum of all positive divisors of follows from its prime factorisation.
- Euler's Totient FunctionEuler's totient counts the integers from 1 to that are coprime to .
- Fermat's Little TheoremIf is prime and is not divisible by , then leaves remainder 1 when divided by .
- Wilson's TheoremAn integer is prime if and only if is divisible by .
Other categories: Algebra · Geometry · Trigonometry · Calculus · Statistics & Probability · Linear Algebra · Sequences & Series · Logarithms & Exponents · Combinatorics · Analytic Geometry