play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page
Strange Integers
Gaussian Integers

Z[3] is not the only algebraic construct for which Euclid's Algorithm and the Fundamental Theorem of Arithmetic (uniqueness of the prime factorization) make sense. The very first result in this spirit was obtained by Gauss who considered the ring Z[i] = {a+bi: a,bZ, i = (-1)}. This is the set of complex numbers with integer coefficients. In his honor the numbers are called the Gaussian Integers.

Extension of Euclid's Algorithm to Z[3] was made possible with the introduction of the function N and the establishment of an inequality that ensured convergence of Euclid's Algorithm.

For A = a+ bi from Z[i], define A' = (a+bi)' = a-bi and N(A) = AA' = a2 + b2. For Z[i], N(A) is never negative and is only 0 for A = 0, i.e. when a = b = 0. For thus defined N, the following holds

(1)

For any given pair A and B from Z[i], B0, there exist in Z[i] numbers Q and R such that.

A = BQ + R, and N(R) < N(B)

The proof follows that for Z[3] but is a little simpler. The inequality (4) is replaced with a more straightforward

(2) |(x-r)2 + (y-s)2| (½)2 + (½)2 = ½ < 1

Thus it follows that Euclid's Algorithm is applicable to the Gaussian integers. And, as a consequence, the prime factorization is unique in Z[i]. Let's briefly consider a few examples.

  1. Z[i] has just four unities: ±1 and ±i.

  2. 2 is composite (not prime) in Z[i].
    Indeed, 2 = (1 + i)(1 - i), and N(1 + i) = N(1 - i) = 2, so none of the factors is a unity.

  3. 3 is prime in Z[i].
    Assuming 3 = AB we first get N(3) = 9 = N(AB) = N(A)N(B). If neither A nor B is unity, N(A) = N(B) = 3. Let's show that the equation N(A) = 3 has no integer solutions. Unless a = b = 0 (mod 9), (a2 + b2) (mod 9) is one of the sequence 1, 4, 7, (1+1)=2, (1+4)=5, (1+7)=8, (4+4)=1, (4+7)=2, (7+7)=5 (mod 9). But 3|a and 3|b implies 9|(a2 + b2) and ,hence, 9|3. A contradiction.

  4. 5 is composite (not prime) in Z[i].
    Indeed, 5 = (1 + 2i)(1 - 2i), and N(1 + 2i) = N(1 - 2i) = 5, so none of the factors is a unity.

  5. Solve x2 + y2 = z2 in integers.
    To solve the Pythagorean equation, first assume that
    Pythagorean triples x,y,z exist. We may then restrict our search to triples with gcd(x, y, z) = 1. This is the same as gcd(x, y) = 1. Factor the left hand side into (x + yi)(x - yi). I leave this without a proof that gcd(x,y) = 1 implies gcd(x + yi, x - yi) = 1. It would be nice to conclude from (x + yi)(x - yi) = z2 that for some Gaussian integers A and B, x + yi = A2 and x - yi = B2. But this may not be the case. In addition, we must consider, say, x + yi = iA2 and x - yi = -iB2 as valid possibilities.

    In the first case, let A = u + vi, then x + yi = (u2 - v2) + 2uvi, and x = u2 - v2, y = 2uv. Substitution yields z = u2 + v2. In the second case, the roles of x and y are reversed.

Question

5 = (1 + 2i)(1 - 2i) = (2 + i)(2 - i). Does this contradict the Fundamental Theorem of Arithmetic in Z[i]?

The ease with which Euclid's Algorithm was extended to Z[3] and Z[i] might have created an illusion that the algorithm is valid in any Z[m]. (The proof of the fundamental inequality (4) obviously works for m = -1, ±2.) However, it can be proven [Stark, Theorem 8.25] that, for m < 0, Z[m] has the unique factorization property only for either m = -1 or m = -2. For m > 0, Z[m] does not have that property if m = 1 (mod 4).

It's also possible to define Q[m] where Q is the set of all rational numbers. (These are called quadratic fields.) A member of Q[m] is called a (rational) integer if it's either a (regular) integer, i.e. belongs to Z, or is a root of a quadratic monic polynomial with integer coefficients. (See [Stark, p 265 and on] for the reason for such a definition.)

For Q[m], there exists only a finite set of numbers m for which Euclid's Algorithm works. These are -11, -7, -3, -2, -1, 2, 3, 5, 6, 7, 11, 13, 17, 19, 21, 29, 33, 37, 41, 57, and 73.

Interestingly, the prime factorization may be unique even without valid Euclid's algorithm. For negative m and in addition to the list above, this is true for m = -19, -43, -67, -163. It's an unsolved problem whether the number of positive such m's is finite.

The fact that the prime factorization is not always unique bedeviled the best mathematical minds. It was not realized, probably, until 1840s. Two famous attempts to prove Fermat's Last Theorem failed because of their authors' belief in the universality of the unique factorization.

After his mistake was discovered by Dirichlet (1843), E.E.Kummer (1810-1893) developed the whole new branch of mathematics - the theory of ideals - to tackle the problem of unique factorization. In 1857, his contribution to mathematics has been acknowledged with a gold medal from the French Academy of Science.

In 1847, G.Lamé (1795-1870) gave a talk at a meeting of the French Academy where he announced a solution to Fermat's Theorem and suggested that the glory of solving the famous theorem should be shared with J.Liouville (1809-1882) to whom he ascribed the method of solution. In a subsequent talk, Liouville brushed aside the praise and pointed out that the assumption of unique factorization made by Lamé had invalidated the proof. Lamé left his mark in the Theory of Elasticity and Mathematical Physics, he introduced curvilinear coordinates, and in his honor were named an equation, a set of coefficients, and a special class of functions.

I'll end with an example of two prime factorizations that violate the Fundamental Theorem of Arithmetic. -5 is among those integers m for which Z[m] does not have the property of unique factorization. Let's consider

(2) 6 = 2×3 = (1 + (-5))(1 - (-5))

All four factors involved are prime in Z[m]. The proof of their primality is based on the fact that the equations a2 + 5b2 = ±2 and a2 + 5b2 = ±3 have no integer solutions. This is easily established considering the equations modulo 5. Indeed, modulo 5 we have just two equations a2 = 2 and a2 = 3. Both are impossible since, for any a, a2 = 0, 1, or 4 (mod 5).

Reference

  1. A.D.Aczel, Fermat's Last Theorem, Four Walls Eight Windows, 1996
  2. A.H.Beiler, Recreations in The Theory of Numbers, Dover, 1966
  3. J.H.Conway and R.K.Guy, The Book of Numbers, Springer-Verlag, NY, 1996.
  4. H.M.Stark, An Introduction to Number Theory, The MIT Press, 1995, Ninth printing.

Copyright © 1996-2008 Alexander Bogomolny

29436897Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
0 messages
07:05 AM, Jul-10-08

Monty Hall Problem
Posted by linkdon
72 messages
06:07 PM, Jul-24-08

Missing information
Posted by roboknight
2 messages
07:32 AM, Jun-22-08

Can You See The Patterns..?
Posted by wustvn
0 messages
10:08 AM, Jul-23-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Central Limit Theorem proof problem
Posted by Manuel
1 messages
01:54 PM, Jul-22-08

You can drill a square hole
Posted by Giorgis
1 messages
10:15 PM, Jul-12-08