Number Theory

Where Unique Factorization Fails and Why That Mattered

See how 6 factors in two different ways once √−5 is allowed, and how repairing that failure led to ideals and modern algebra.

Key takeaways

  • In the ordinary integers every number above 1 factors into primes in only one way, but larger number systems need not share this property.
  • Among the numbers a + b√−5, the number 6 has two factorizations into pieces that cannot be split.
  • In such a system "cannot be split" and "behaves like a prime" are different properties.
  • Kummer's ideal numbers and Dedekind's ideals restore uniqueness by factoring collections of numbers instead of single ones.

Unique factorization fails as soon as you enlarge the integers in certain natural ways. Among numbers of the form a + b√−5, with a and b integers, you can write 6 = 2 × 3 and also 6 = (1 + √−5) × (1 − √−5), and none of those four factors can be broken down further.

That example looks like a curiosity. The same kind of failure, in related number systems, blocked attempts to solve famous equations, and the effort to repair it produced the concept of an ideal, one of the central ideas of modern algebra.

What we take for granted

In the integers, however you split 60, you reach 2 × 2 × 3 × 5. The proof of unique factorization depends on a fact about primes: if a prime divides a product, it divides one of the factors.

It is natural to want more numbers. To factor x² + 1, you adjoin i, the square root of −1. To factor x² + 5, you adjoin √−5. The resulting collections are closed under addition, subtraction and multiplication, so questions about divisibility still make sense in them.

The numbers a + bi with integer a and b are called Gaussian integers. There uniqueness survives, once you agree that multiplying by 1, −1, i or −i does not count as a new factorization. For instance 5 splits as (2 + i)(2 − i), so 5 is no longer prime, yet nothing ambiguous results.

The system with √−5

Now take numbers a + b√−5. Multiply two of them using (√−5)² = −5.

(1 + √−5)(1 − √−5) = 1 − (−5) = 6
2 × 3 = 6

To show that these are truly different factorizations, we need to measure size. Define the norm of a + b√−5 as

N(a + b√−5) = a² + 5b²

The norm is a whole number that is never negative, and the norm of a product equals the product of the norms. So if a number factors, its norm factors in step. The only elements of norm 1 are 1 and −1, which are called units because they divide everything and do not count as real factors.

Why the four factors cannot be split

The norms of 2, 3, 1 + √−5 and 1 − √−5 are 4, 9, 6 and 6. A genuine factor of any of them would need a norm that properly divides one of these and is not 1. The only possibilities are 2 and 3.

a² + 5b² = 2 ?     b must be 0, and a² = 2 has no integer solution
a² + 5b² = 3 ?     b must be 0, and a² = 3 has no integer solution

No element has norm 2 or 3. So none of the four numbers splits. Finally, 2 is not 1 + √−5 or 1 − √−5 multiplied by a unit, since the norms differ. The number 6 really does have two distinct factorizations.

Two factorizations of 6 among the numbers a + b√−5
6 = 2 × 3 Norms of the factors are 4 and 9 Neither factor can be split Their product has norm 36 6 = (1 + √−5)(1 − √−5) Norms of the factors are 6 and 6 Neither factor can be split Their product also has norm 36 VS 6 = 2 × 3 Norms of the factors are 4 and 9 Neither factor can be split Their product has norm 36 6 = (1 + √−5)(1 − √−5) Norms of the factors are 6 and 6 Neither factor can be split Their product also has norm 36

Irreducible is not the same as prime

Two ideas that coincide in the integers now separate. An element is irreducible if it is not zero or a unit and cannot be written as a product of two non-units. It is prime if, whenever it divides a product, it divides one of the factors.

The number 2 is irreducible here. It divides (1 + √−5)(1 − √−5) = 6. Yet 2 divides neither factor, since (1 + √−5)/2 does not have integer coefficients. So 2 is irreducible and not prime.

That is exactly the gap through which uniqueness escapes. In any system where every irreducible element is prime and factoring always stops, the usual cancellation argument works and factorizations are unique.

More examples in the same system

The number 6 is not an isolated accident. Look at 9.

3 × 3 = 9
(2 + √−5)(2 − √−5) = 4 + 5 = 9

The norms of 2 + √−5 and 2 − √−5 are both 9. A split would again need a factor of norm 3, which does not exist, so all four factors are irreducible.

Not every number misbehaves. Some have only one factorization, because the irreducible pieces involved happen to be prime. The number √−5 has norm 5, so any factorization of it would need a factor of norm 1, and it is irreducible. In fact it is prime as well.

There is still a weak form of order. Every element other than 0 and the units can be written as a product of irreducibles, because each split reduces the norm and a whole number cannot shrink forever. Existence is safe. Only uniqueness is lost. Something even survives of that: here, all factorizations of a given number into irreducibles use the same number of factors, a special feature of systems with class number 2.

A simpler cousin

You can see the same effect with ordinary whole numbers. Keep only those leaving remainder 1 on division by 4: 1, 5, 9, 13, 17, 21 and so on. Products stay inside the set. Here 441 = 9 × 49 = 21 × 21, and none of 9, 21 or 49 splits within the set.

In this example the cure is obvious. The "missing" numbers 3 and 7 exist in the larger world of integers: 9 = 3 × 3, 49 = 7 × 7 and 21 = 3 × 7. Once they are admitted, both factorizations become the same list, 3 × 3 × 7 × 7.

This suggests what to do with √−5. Perhaps there are hidden factors that split 2, 3 and 1 ± √−5 further, even though they are not numbers in the system.

Why it mattered: Fermat's Last Theorem

Fermat's Last Theorem says that xⁿ + yⁿ = zⁿ has no solutions in positive integers when n is at least 3. One attractive strategy factors the left side, for odd n, using complex nth roots of 1, and then argues that each factor must itself be an nth power.

That last step is justified in the integers by unique factorization. In 1847 Gabriel Lamé announced a proof along these lines to the Paris Academy. Joseph Liouville questioned whether unique factorization held for those enlarged numbers. Ernst Kummer had already found that it can fail; the first prime exponent where it does is 23.

Kummer then built a repair that let him prove the theorem for a large class of exponents, the so-called regular primes. The full theorem had to wait for Andrew Wiles in the 1990s, by very different routes. The longer story is in the road to Wiles's proof.

Ideals, the repair

Kummer introduced what he called ideal numbers. Richard Dedekind later gave them a concrete form. An ideal is a set of elements closed under addition and under multiplication by anything in the system. All multiples of a single number form an ideal, and some ideals are not of that type.

In our system, let P be all combinations of 2 and 1 + √−5. Let Q be the combinations of 3 and 1 + √−5, and R those of 3 and 1 − √−5. Multiplying ideals is defined in a natural way, and one finds:

ideal of 2          = P × P
ideal of 3          = Q × R
ideal of 1 + √−5    = P × Q
ideal of 1 − √−5    = P × R

ideal of 6          = P × P × Q × R   either way

Both factorizations of 6 are just different ways of grouping the same four prime ideals. Dedekind proved that in the rings of integers of number fields, every nonzero proper ideal factors uniquely into prime ideals.

Why a set of numbers can act like a missing number

The idea behind an ideal is to describe a missing factor by what it would divide. Suppose there were a hidden number dividing both 2 and 1 + √−5. We cannot write it down, but we can say which elements should be its multiples: 2, 1 + √−5, and everything built from them by adding and multiplying. That collection is P.

When a genuine common factor exists, the collection consists exactly of its multiples, and nothing new has happened. In the ordinary integers, all combinations of 12 and 18 are the multiples of 6, which is Bezout's identity restated. Every ideal of the integers comes from a single number.

P is different. It does not consist of the multiples of any one element. If it did, that element would divide 2 and 1 + √−5, so it would be 1 or −1. But P does not contain 1: every element x + y√−5 in P has x + y even. So P is a divisor that no number represents, precisely the missing piece we wanted.

Dedekind's step was to treat these sets as objects in their own right, with their own multiplication and their own primes. It was an early and influential example of defining a new mathematical object as a set of old ones.

Measuring the failure

Not every enlarged system fails. Mathematicians attach to each number field a positive whole number, the class number, which equals 1 exactly when its ring of integers has unique factorization. For a + b√−5 the class number is 2.

For imaginary quadratic fields, those built from √−d with d positive and free of square factors, the class number is 1 only for d = 1, 2, 3, 7, 11, 19, 43, 67 and 163. That the list is complete is a deep theorem, associated with Heegner, Baker and Stark. Note that for some d, including 3, the correct ring contains certain halves, such as (1 + √−3)/2.

For real quadratic fields the picture is far less settled. It is conjectured that infinitely many have class number 1, and this remained unproved as of the mid-2020s.

The lasting lesson

A property that seems obvious in familiar territory can be a special feature of that territory. Checking which facts a proof actually uses is not pedantry; it shows where the argument will survive and where it will break.

The failure was also productive. Ideals now appear throughout algebra and geometry, and class numbers remain an object of research. You can continue with algebraic number theory in plain language.

Common questions

Does this undermine ordinary arithmetic?

No. Unique factorization of the whole numbers is a proved theorem. The failure occurs only in different, larger systems.

Why does addition matter in a question about factoring?

Primes and factoring concern multiplication, but proofs of uniqueness use addition through division with remainder or Bezout's identity. Systems with a suitable division algorithm always have unique factorization.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 59 articles in Number Theory →

Latest news on this topic