Ancient Greek Number Theory


Ancient Greek Number Theory

Anna
Good afternoon, and welcome. Today we're exploring ancient Greek number theory. The Greeks are often associated mainly with geometry, but they also made important advances in arithmetic with natural numbers.

Michael
And number theory is really a more impressive name for studying patterns and properties of numbers. The subject has often had a mystical side too: people have treated certain numbers as lucky, unlucky, or even religiously significant.

Anna
Let's begin with square numbers. A square number is what you get by multiplying a natural number by itself. For example, five squared is twenty-five, which can be pictured as a five-by-five square made of twenty-five smaller squares.

Michael
The Greeks noticed that a square can be built up in layers. Start with one small square, then add an L-shaped layer containing three squares, then another containing five, then seven, and so on. These L-shaped layers were called gnomons.

Anna
So twenty-five can be decomposed as one plus three plus five plus seven plus nine. That illustrates the general rule: the sum of the first odd numbers is always a square.

Michael
In symbols, one plus three plus five, continuing through the appropriate odd number, gives the square of the number of terms. The geometry makes the pattern visible rather than leaving it as a purely numerical observation.

Anna
Another geometric family is the triangular numbers. These are numbers of objects that can be arranged in a triangle: one, then three, then six, then ten, and so forth.

Michael
For example, ten can be arranged in rows of four, three, two, and one. That also shows that the tenth triangular number isn't involved here—the fourth triangular number is ten, because it is one plus two plus three plus four.

Anna
Exactly. The nth triangular number is the sum of the first n natural numbers. A clever geometric argument gives its formula. If you place two identical triangular arrangements together, they form a rectangle with side lengths n and n plus one.

Michael
That means twice the nth triangular number equals n times n plus one. Therefore, the formula is T sub n equals n times n plus one, divided by two.

Anna
For n equal to four, we get four times five divided by two, which is ten. And for n equal to one hundred, the formula gives one hundred times one hundred and one divided by two, or 5,050.

Michael
That is the famous kind of calculation often associated with the young Gauss. Instead of adding every number from one through one hundred individually, you recognize the sum as a triangular number and compute it directly.

Anna
Now we move to numbers that became much more important in the history of mathematics: prime numbers. A prime has no divisors other than one and itself.

Michael
Eighteen is not prime because it has divisors such as two and nine. Nineteen is prime because the only positive factors are one and nineteen.

Anna
The primes begin two, three, five, seven, eleven, thirteen, seventeen, nineteen, twenty-three, twenty-nine, and thirty-one. They seem to have some regularity, but they also become sparser and harder to predict as numbers grow.

Michael
One of Euclid's great achievements was proving that this list never stops. Books seven through nine of Euclid's Elements dealt with number theory, while the earlier books, especially books one through six, focused more on geometry.

Anna
Euclid's original statement is often translated as, 'Prime numbers are more than any assigned multitude of prime numbers.' In modern language, we usually say that there are infinitely many primes.

Michael
But the ancient Greeks were uncomfortable talking about infinite sets. They preferred to say that the sequence of primes keeps going and never reaches a final, largest prime.

Anna
Here is Euclid's proof. Suppose, for contradiction, that there were only finitely many primes: P1 through Pn. Construct a new number N by multiplying all of them together and adding one: N equals P1 times P2 and so on through Pn, plus one.

Michael
When N is divided by any prime on the supposed complete list, the remainder is one. So none of those primes divides N.

Anna
There are then two possibilities. Either N itself is prime, in which case it is a new prime larger than every prime on the list, or N is composite and has a prime factor. That factor cannot be any of the listed primes, so it too is a new prime.

Michael
Either way, the assumption that P1 through Pn were all the primes leads to a contradiction. Therefore, the primes keep going indefinitely.

Anna
That argument relies on another major fact: every natural number can be expressed as a product of primes, and that expression is essentially unique apart from the order of the factors. This is called the fundamental theorem of arithmetic.

Michael
Take 612. It is even, so divide by two to get 306, and divide by two again to get 153. Then divide by three to get 51, divide by three again to get 17, and stop because 17 is prime. Thus 612 equals two times two times three times three times seventeen.

Anna
Someone else might factor 612 in a different order, but the same prime factors would ultimately appear. The theorem says that the prime decomposition itself is fixed, even though the path used to find it may differ.

Michael
The Greeks also studied perfect numbers. A perfect number is equal to the sum of all its proper divisors—that is, all its positive divisors except the number itself.

Anna
Six is perfect because its proper divisors are one, two, and three, and one plus two plus three equals six. Twenty-eight is also perfect because one plus two plus four plus seven plus fourteen equals twenty-eight.

Michael
By contrast, twelve is not perfect: its proper divisors add to sixteen. Seven is not perfect either, because its only proper divisor is one.

Anna
Euclid's culminating result in Book Nine gives a way to generate perfect numbers. Start with one and repeatedly double: one, two, four, eight, sixteen, and so on. If the sum of the terms through the last one is prime, multiply that sum by the last term; the result is perfect.

Michael
For the first example, one plus two equals three, which is prime. Multiplying three by the last term, two, gives six. The next example is one plus two plus four, which equals seven, and seven times four gives twenty-eight.

Anna
The next sum is one plus two plus four plus eight, which equals fifteen, so it does not produce a perfect number by this rule. But adding sixteen gives thirty-one, which is prime, and thirty-one times sixteen produces another perfect number.

Michael
Because the doubling sequence is geometric, the sum from one through two to the relevant power can be written as two to the n minus one. So Euclid's result can be restated: if two to the n minus one is prime, then multiplying it by two to the n minus one gives a perfect number.

Anna
Primes of the form two to the n minus one are called Mersenne primes. Not every number of that form is prime—fifteen is an example of one that is not—but these primes are especially interesting and can be useful when searching for large primes.

Michael
Finding enormous primes is difficult. The method of multiplying a huge collection of known primes and adding one proves that new primes exist, but it is not a practical way to generate them once the known primes become extremely numerous.

Anna
At the time described in the lecture, the largest known prime was two to the power of 43,112,609 minus one. Written out, it would have about twelve million digits, illustrating how much computational work is involved in searching for larger examples.

Michael
Prime numbers also moved from being viewed mainly as recreational or abstract mathematics to becoming central to modern security. Encryption used for things such as online banking often relies crucially on prime numbers and the difficulty of factoring large products.

Anna
The basic idea is that it is easy to find two large primes and multiply them together. But if someone is given only the product, recovering the two original prime factors can be extremely difficult when the numbers are sufficiently large.

Michael
That creates an important asymmetry: one person can know the factors while another person, even with substantial computing power, may not be able to discover them. This difficulty helps support the encryption of secret messages and sensitive information.

Anna
Let's finish with Euclid's algorithm for finding the greatest common divisor, or GCD. The GCD of two numbers is the largest number that divides both of them.

Michael
Consider 612 and 93. Their prime factorizations are 612 equals two squared times three squared times seventeen, and 93 equals three times thirty-one. From those factorizations, the GCD is clearly three.

Anna
But factoring large numbers can be difficult. Euclid's algorithm finds the GCD without requiring prime factorization. Divide the larger number by the smaller and keep the remainder: 612 equals six times 93 plus 54.

Michael
The key observation is that the GCD of 612 and 93 is the same as the GCD of 93 and 54. Any number that divides both 612 and 93 must also divide their difference, or equivalently the remainder produced in the division.

Anna
Now repeat the process. Ninety-three equals one times fifty-four plus thirty-nine. Fifty-four equals one times thirty-nine plus fifteen. Thirty-nine equals two times fifteen plus nine.

Michael
Continue: fifteen equals one times nine plus six, and nine equals one times six plus three. Finally, six equals two times three with remainder zero.

Anna
The last nonzero remainder is three, so the GCD of 612 and 93 is three. This is a remarkably efficient procedure: instead of factoring the numbers, we repeatedly reduce the problem to smaller pairs.

Michael
That is why Euclid's algorithm is historically important. It is one of the earliest examples of an algorithm—a clearly defined sequence of logical steps that reliably accomplishes a task.

Anna
So our journey through Greek number theory has taken us from geometric patterns in squares and triangles to the structure of primes, the proof that primes never end, unique prime factorization, perfect numbers, Mersenne primes, modern encryption, and finally the Euclidean algorithm.

Michael
And the common thread is that simple numerical observations can lead to deep mathematical ideas. The ancient Greeks were not merely calculating; they were discovering structure that still shapes mathematics and technology today.

Ask anything
We've read this whole study set, so questions about it get the best answers.