Learn/Number Theory/Fundamental Theorem of Arithmetic
Number Theory • Topic 5

Fundamental Theorem of Arithmetic

This theorem guarantees that the prime factorization of any integer is unique. It is the reason we can talk about "the" factorization of a number.

Statement

Theorem (Fundamental Theorem of Arithmetic)
Every integer can be represented as a product of prime numbers in exactly one way, up to the order of the factors.

Why is this non-trivial?

In other number systems (like ), unique factorization fails. Example: .

Proof Sketch

  1. Existence: Induction. If is prime, done. If composite, . Factors decompose further until primes are reached.
  2. Uniqueness: Uses Euclid's Lemma ( or ).
  • Suppose .
  • for some .
  • Cancel and repeat.

Applications

  • GCD and LCM: Can be computed by taking min/max of exponents in prime factorization.
  • Irrationality: Used to prove is irrational (by comparing powers of 2 in ).

Practice Problems

Exercise (Problem 1)
If is divisible by , and is divisible by , prove that ? (False. Find a counterexample). What if we consider square-free parts?
Exercise (Problem 2)
Find all positive integers such that divides and divides and divides .
Exercise (Problem 3)
Prove is irrational using unique factorization.