MagiMathics

Just another WordPress.com weblog

Primal Soup

leave a comment »

image Number theory really began with Euclid, around 300BC, in books 7 through 9 of his masterwork, The Elements. It is here that we find the original definitions of odd and even numbers, prime and composite numbers, perfect numbers (numbers which are the sum of their factors, e.g. 6 = 3 + 2 + 1), and more. But the greatest achievements of all were his proofs that composite numbers are the products of primes, that this factorization is unique, and that there are an infinity of primes. Most introductory algebra or number theory classes cover these three great proofs, but they are worth revisiting for those who may have forgotten.

Before doing so, it is worth revisiting Euclid’s clever algorithm for calculating the greatest common divisor (GCD) of two numbers. We made use of this when solving the Monkey and Coconuts puzzle.

We divide the smaller number into the larger and keep track of the remainder. Then we divide that remainder into the smaller number to get a second remainder, then divide the second remainder into the first remainder to get a third remainder, and so on. Eventually we get a remainder of zero; the remainder just before this is the GCD. If this happens to be one, we say the numbers are coprime. For example, consider 64 and 10:

  • 64 = 10 x 6 + 4
  • 10 = 4 x 2 + 2
  • 4 = 2 x 2 + 0

So the GCD is 2.

For another example, consider 77 and 65:

  • 77 = 65 x 1 + 12
  • 65 = 12 x 5 + 5
  • 12 = 5 x 2 + 2
  • 5 = 2 x 2 + 1
  • 2 = 1 x 2 + 0

So the GCD is 1 and the numbers are coprime.

In the proofs below we make use of a special case of Bézout’s identity, which states that if two numbersa andb have a GCDg, then there exists somex andy such thatax + by = g. In our case we care about the situation wherea andb are coprime, so that there exists somex andy such thatax + by = 1. We aren’t proving that here but it is exactly equivalent to solving the Diophantine equations we solved for the Monkey and Coconuts problem (where x and y where the number of coconuts at the start and end).

Proof that Composite Numbers have Prime Factors

LetA be a composite number. Then by definitionA must be divisible by some smaller numberB. IfB is prime we are done; ifB is not prime it is must be divisible by some smaller numberC, and so on. Continuing in this way, we find:

A > B > C > \dots > 1

This sequence must terminate with a prime number in the last position before 1; if not, that is, if each successive number is still composite, then the series is infinite, but we cannot have an infinite series of decreasing whole numbers.

Prime Factorization Theorem (aka the Unique Factorization Theorem aka the Fundamental Theorem of Arithmetic)

There are two steps: first we show that if a primep divides a compositeab, thenp must divide at least one ofa orb. Assumep does not dividea – then the GCD (greatest common divisor) ofp anda must be 1, asp is prime. By Bézout’s identity, there must be some integersx andy satisfyingpx + ay = 1. Multiplying both sides byb givespxb+aby = b, and both terms on the left hand side are products ofp, thusb must be a product ofp.

Now for the main proof. Lets be the smallest natural number that can be written as a product of prime numbers in more than one way (ignoring ordering, of course). Let one factorization bep_1 p_2 \dots p_m and another beq_1 q_2 \dots q_n. The previous result proves thatp_1 divides eitherq_1 orq_2 \dots q_n. Because both q_1 and q_2 \dots q_n must have unique prime factorizations,p_1 must equal someq_i. If we then removep_1 andq_i  we have two different factorizations of a number \frac{s}{p_1} which is smaller thans, which contradicts our assumption thats is the smallest such number.

Proof of the Infinitude of the Primes

Assume the set of primes is finite, given by{ p_1, p_2, \dots, p_n }. Consider the number p = p_1 p_2 p_3 \dots p_n + 1. This is not divisible by any of the primes in the set; it always leaves a remainder of 1. Therefore it is either itself prime or has other prime divisors not in the set, and so the set is incomplete.

Further reading: William Dunham’s Journey through Genius: The Great Theorems of Mathematics has two chapters on Euclid’s elements and covers much of this material (although he omits the proofs apart from the last one). Proofs from THE BOOK has about six different proofs of the infinitude of the primes, each using a different branch of mathematics, from algebra to set theory to topology. To dust off my rusty memory of these proofs I had to pull out my well-thumbed college textbook Rings, Fields and Groups: An Introduction to Abstract Algebra, but while it is a great text I wouldn’t recommend it to those faint of heart!

Advertisements

Written by Graham Wheeler

January 6, 2010 at 6:54 am

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: