Skip to content

Canonical Prime Decomposition

Unique prime factorization says that every integer $n>1$ can be written as a product of primes. The canonical prime decomposition is the ordered and exponentiated version of...

Standard Form of an Integer

Unique prime factorization says that every integer n>1n>1 can be written as a product of primes. The canonical prime decomposition is the ordered and exponentiated version of this factorization.

For every integer n>1n>1, there exist distinct primes

p1<p2<<pr p_1<p_2<\cdots<p_r

and positive integers

α1,α2,,αr \alpha_1,\alpha_2,\ldots,\alpha_r

such that

n=p1α1p2α2prαr. n=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_r^{\alpha_r}.

This expression is canonical because the primes are written in increasing order and equal primes are grouped into powers.

For example,

840=23357. 840=2^3\cdot3\cdot5\cdot7.

No other ordered list of primes and exponents gives the same integer.

Exponents as Arithmetic Data

The exponent αi\alpha_i records how many times the prime pip_i occurs in the factorization of nn.

For example,

360=23325. 360=2^3\cdot3^2\cdot5.

This means

360=222335. 360=2\cdot2\cdot2\cdot3\cdot3\cdot5.

The prime 22 appears three times, the prime 33 appears twice, and the prime 55 appears once.

Thus canonical decomposition converts multiplication into a finite record of prime exponents.

Prime Valuations

For a prime pp, the exponent of pp in the prime factorization of nn is called the pp-adic valuation of nn. It is denoted by

vp(n). v_p(n).

Thus

vp(n)=α v_p(n)=\alpha

if pαnp^\alpha\mid n but

pα+1n. p^{\alpha+1}\nmid n.

For example, since

360=23325, 360=2^3\cdot3^2\cdot5,

we have

v2(360)=3,v3(360)=2,v5(360)=1. v_2(360)=3, \qquad v_3(360)=2, \qquad v_5(360)=1.

If a prime pp does not divide nn, then

vp(n)=0. v_p(n)=0.

Reconstructing the Integer

The collection of all valuations determines the integer completely:

n=ppvp(n). n=\prod_p p^{v_p(n)}.

Although the product is written over all primes, only finitely many exponents are nonzero. Therefore the product is finite in substance.

For example,

72=2332 72=2^3\cdot3^2

means

v2(72)=3,v3(72)=2, v_2(72)=3, \qquad v_3(72)=2,

and

vp(72)=0 v_p(72)=0

for every other prime pp.

The canonical decomposition may therefore be viewed as a coordinate system for positive integers, with one coordinate for each prime.

Multiplication in Canonical Form

Canonical decomposition makes multiplication simple.

If

a=ppαp a=\prod_p p^{\alpha_p}

and

b=ppβp, b=\prod_p p^{\beta_p},

then

ab=ppαp+βp. ab=\prod_p p^{\alpha_p+\beta_p}.

Multiplication of integers becomes addition of prime exponents.

For example,

12=223 12=2^2\cdot3

and

45=325. 45=3^2\cdot5.

Therefore

1245=22335=540. 12\cdot45=2^2\cdot3^3\cdot5=540.

The exponent of each prime in the product is the sum of its exponents in the factors.

Divisibility in Canonical Form

Divisibility also becomes transparent.

If

a=ppαp a=\prod_p p^{\alpha_p}

and

b=ppβp, b=\prod_p p^{\beta_p},

then

ab a\mid b

if and only if

αpβp \alpha_p\le \beta_p

for every prime pp.

For example,

18=232 18=2\cdot3^2

and

252=22327. 252=2^2\cdot3^2\cdot7.

Since every exponent in 1818 is less than or equal to the corresponding exponent in 252252, we have

18252. 18\mid252.

But

20=225 20=2^2\cdot5

does not divide 252252, because 55 appears in 2020 but not in 252252.

GCD and LCM

The canonical decomposition gives direct formulas for greatest common divisors and least common multiples.

If

a=ppαp a=\prod_p p^{\alpha_p}

and

b=ppβp, b=\prod_p p^{\beta_p},

then

gcd(a,b)=ppmin(αp,βp) \gcd(a,b)=\prod_p p^{\min(\alpha_p,\beta_p)}

and

lcm(a,b)=ppmax(αp,βp). \operatorname{lcm}(a,b)=\prod_p p^{\max(\alpha_p,\beta_p)}.

For example,

72=2332 72=2^3\cdot3^2

and

120=2335. 120=2^3\cdot3\cdot5.

Hence

gcd(72,120)=233=24 \gcd(72,120)=2^3\cdot3=24

and

lcm(72,120)=23325=360. \operatorname{lcm}(72,120)=2^3\cdot3^2\cdot5=360.

The gcd uses the smaller exponent of each prime. The lcm uses the larger exponent.

Powers and Perfect Powers

Canonical decomposition also characterizes perfect powers.

An integer n>1n>1 is a perfect square if

n=m2 n=m^2

for some integer mm. In prime decomposition, this happens exactly when every exponent vp(n)v_p(n) is even.

For example,

144=2432 144=2^4\cdot3^2

is a square because all exponents are even:

144=122. 144=12^2.

More generally, nn is a perfect kk-th power if every exponent in its canonical decomposition is divisible by kk.

Role in Number Theory

Canonical prime decomposition is one of the main languages of elementary number theory. It converts multiplicative questions about integers into questions about exponents.

Divisibility becomes coordinatewise comparison. Multiplication becomes coordinatewise addition. Greatest common divisors and least common multiples become coordinatewise minimum and maximum.

This viewpoint is simple but powerful. It prepares the way for arithmetic functions, valuations, local methods, and the broader idea that global arithmetic structure can be studied prime by prime.