Monday Math: The Uniqueness of Prime Factorizations

The big number theory class has moved on to prime factorizations and the fundamental theorem of arithmetic. As it happens, though, I've already done a post on that subject.

Looking back at what I wrote then I see that I left out one important detail. I asserted without proof (though I did provide a link) that if a prime divides the product of two other numbers then it had to divide one of the two factors already. The proof of that result requires something that we estblished last week. So let's have a look.

Last week we mentioned that it is a consequence of the Euclidean algorithm that if a and b are integers with


\[
d= \gcd(a,b),
\]

 

then we can find (possibly negative) integers x and y such that


\[
ax+by=d.
\]

 

In particular, if a and b are relatively prime then we can find x and y so that


\[
ax+by=1.
\]

 

Very nice. But how is that helpful?

Now let p be a prime number. We want to show:


\[
\textrm{If} \ p \ | \ ab \ \textrm{then} \ p \ | \ a \ \textrm{or} \ p \ | \ b.
\]

 

To accomplish that we shall assume that p does not divide a, and show that this implies that p does divide b.

Well then. If p does not divide a then we must have that


\[
\gcd(p,a)=1.
\]

 

If that is not clear then remember that the only divisors of a prime number are one and the number itself. But since we are assuming that p does not divide a, we know that p cannot be the greatest common divisor in this case. That leaves one as the only possibility.

Since p and a are relatively prime, we can apply our little trick to find x and y so that


\[
ax+py=1.
\]

 

Multiplying both sides by b produces


\[
abx+bpy=b.
\]

 

Look carefully at the left-hand side. I claim that we have:


\[
p \ | \ bpy \phantom{xxx} \textrm{and} \phantom{xxx} p \ | \ abx.
\]

 

The first of those is obvious. The second follows immediately from our assumption that p divides ab. But those two together imply that p divides the left-hand side. It follows that p divides the right-hand side as well, which is exactly what we were trying to show.

Done and done.

More like this

My number theory class has moved on from Pythagorean triples. Lately we've been talking about the Euclidean algorithm. Specifically, it's an algorithm for finding the greatest common divisor (gcd) of two numbers. Of course, there are lots of ways finding the gcd. You could simply list all of the…
I know what you're thinking. You're thinking, “Gosh, it sure is neat that we can generate all Pythagorean triples from one simple formula, but what happens if we try an exponent bigger than two? That is, can you find nontrivial integer solutions to the equation \[ x^n+y^n=z^n \]   when n is a…
Time to finish what we started last week. We saw that if a, b, c was a primitive Pythagorean triple, then at least one of a and b is even and one is odd. Let us declare, then, that we will use a to denote the odd length and b to denote the even one. By rearranging the Pythagorean equation and…
The big number theory course has moved on to modular arithmetic, which means we have been discussing Fermat's Little Theorem. Personally I've always thought that name is just adorable. As it happens, I already did a post on this topic. But since that post is close to a year old, and since I did…