MathorynMathematical Formula Database

Number Theory

Fundamental Theorem of Arithmetic

Every integer greater than 11 can be written as a product of primes in exactly one way, apart from the order of the factors. Prime factorisation is used to compute GCDs, LCMs, divisor counts and to simplify fractions and roots.

n=p1a1p2a2⋯pkakn=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k}
LaTeXn=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k}

Variables

nn
integer greater than 1
pip_i
distinct primes
aia_i
positive exponents

Example

Factor 360360 into primes.

  1. 360=2⋅180=22⋅90=23⋅45360=2\cdot180=2^2\cdot90=2^3\cdot45.
  2. 45=32⋅545=3^2\cdot5.

Answer: 360=23⋅32⋅5360=2^3\cdot3^2\cdot5.

Related formulas