1. Home
  2. Explore
  3. Mathematics
  4. Ancient Greek Number Theory

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Ancient Greek Number Theory

Greek Number Theory

Ancient Greek mathematics was primarily associated with geometry, but Greek mathematicians also made major contributions to number theory. Number theory is the systematic study of arithmetic involving natural numbers, especially their patterns, divisors, and relationships.

The study of numbers often had a mystical or religious dimension in the ancient world. Certain numbers were regarded as lucky, unlucky, or symbolically significant. However, Greek number theory also developed rigorous mathematical ideas, including the study of square numbers, triangular numbers, primes, perfect numbers, factorization, and greatest common divisors.


Square Numbers

A square number is a number that can be represented as the product of a natural number with itself. In modern notation, the square of nnn is

n2=n×n.n^2 = n \times n.n2=n×n.

For example,

52=5×5=25.5^2 = 5 \times 5 = 25.52=5×5=25.

A square number can be represented geometrically as a square array of dots or smaller squares. A 5×55 \times 55×5 array contains 252525 units.

Square Numbers as Successive Odd Numbers

The Greeks observed that a square can be built by adding successive layers around smaller squares. Each new layer has an odd number of units. These L-shaped layers were called gnomons.

Starting with a single unit:

  • The first layer contains 111 unit.

  • The next L-shaped layer contains 333 units.

  • The next contains 555 units.

  • The next contains 777 units.

  • The next contains 999 units.

Thus,

25=1+3+5+7+9.25 = 1 + 3 + 5 + 7 + 9.25=1+3+5+7+9.

This pattern generalizes to every square number:

1+3+5+⋯+(2n−1)=n2.1 + 3 + 5 + \cdots + (2n-1) = n^2.1+3+5+⋯+(2n−1)=n2.

For example,

1+3+5+7=16=42.1 + 3 + 5 + 7 = 16 = 4^2.1+3+5+7=16=42.

The sum of the first nnn odd natural numbers is always the square number n2n^2n2.

The geometric interpretation explains why the identity works: each successive odd number forms an L-shaped layer that enlarges the previous square by one row and one column.


Triangular Numbers

A triangular number is a number that can be represented by arranging dots in a triangular pattern.

The first triangular numbers are:

1, 3, 6, 10, 15,…1,\ 3,\ 6,\ 10,\ 15,\ldots1, 3, 6, 10, 15,…

They are formed by summing the first consecutive natural numbers:

Tn=1+2+3+⋯+n.T_n = 1 + 2 + 3 + \cdots + n.Tn​=1+2+3+⋯+n.

Examples include:

  • T1=1T_1 = 1T1​=1

  • T2=1+2=3T_2 = 1+2=3T2​=1+2=3

  • T3=1+2+3=6T_3 = 1+2+3=6T3​=1+2+3=6

  • T4=1+2+3+4=10T_4 = 1+2+3+4=10T4​=1+2+3+4=10

The fourth triangular number, 101010, can be arranged as four rows containing 111, 222, 333, and 444 dots.

Deriving the Triangular Number Formula

The formula for the nnnth triangular number is

Tn=n(n+1)2.T_n = \frac{n(n+1)}{2}.Tn​=2n(n+1)​.

One way to understand this formula is to duplicate the triangular arrangement and fit the two copies together. The two triangles form a rectangle:

  • One side has length nnn.

  • The other side has length n+1n+1n+1.

Therefore, the area of the rectangle is

n(n+1).n(n+1).n(n+1).

Since this rectangle consists of two identical triangular arrangements,

2Tn=n(n+1).2T_n = n(n+1).2Tn​=n(n+1).

Dividing by 222 gives

Tn=n(n+1)2.T_n = \frac{n(n+1)}{2}.Tn​=2n(n+1)​.

Example: The Sum from 111 to 100100100

The sum

1+2+3+⋯+1001+2+3+\cdots+1001+2+3+⋯+100

is the hundredth triangular number:

T100=100(101)2.T_{100} = \frac{100(101)}{2}.T100​=2100(101)​.

Therefore,

T100=5050.T_{100}=5050.T100​=5050.

This method avoids adding the numbers individually. A well-known story attributes this type of rapid calculation to the young Carl Friedrich Gauss, who supposedly recognized the pattern and computed the sum quickly.

A triangular number is the sum of the first nnn natural numbers, and its value is n(n+1)2\frac{n(n+1)}{2}2n(n+1)​.


Prime Numbers

A prime number is a natural number greater than 111 whose only positive divisors are 111 and the number itself.

Examples of prime numbers include

2, 3, 5, 7, 11, 13, 17, 19, 23, 29,…2,\ 3,\ 5,\ 7,\ 11,\ 13,\ 17,\ 19,\ 23,\ 29,\ldots2, 3, 5, 7, 11, 13, 17, 19, 23, 29,…

The number 191919 is prime because its only positive factorization is

19=1×19.19 = 1 \times 19.19=1×19.

By contrast, 181818 is not prime because it has several divisors:

18=1×18=2×9=3×6.18 = 1 \times 18 = 2 \times 9 = 3 \times 6.18=1×18=2×9=3×6.

Its positive divisors are

1, 2, 3, 6, 9, 18.1,\ 2,\ 3,\ 6,\ 9,\ 18.1, 2, 3, 6, 9, 18.

A number greater than 111 that is not prime is called composite. The number 111 is neither prime nor composite.

Distribution of Primes

The sequence of primes appears partly regular and partly irregular:

  • Small numbers contain many primes.

  • Primes become less frequent as numbers get larger.

  • There is no simple repeating pattern that lists all primes.

  • Nevertheless, primes never stop occurring.

For example, the numbers 333333 and 353535 are composite, not prime, because

33=3×1133=3 \times 1133=3×11

and

35=5×7.35=5 \times 7.35=5×7.

Euclid’s Theorem on the Infinitude of Primes

One of the great achievements of ancient Greek mathematics was the proof that there are infinitely many primes. Euclid stated this idea in Book 9, Proposition 20 of The Elements as:

“Prime numbers are more than any assigned multitude of prime numbers.”

In modern language, this means that there are infinitely many prime numbers. The ancient Greeks generally avoided speaking about infinite sets. Instead, they described the sequence of primes as never stopping: no matter how far the list continues, another prime can always be found.

Proof That There Are Infinitely Many Primes

Assume, for contradiction, that there are only finitely many primes. Suppose the complete list is

P1,P2,…,Pn.P_1,P_2,\ldots,P_n.P1​,P2​,…,Pn​.

Construct a new number

N=P1P2⋯Pn+1.N=P_1P_2\cdots P_n+1.N=P1​P2​⋯Pn​+1.

This number is one greater than the product of every prime on the supposed complete list.

For any prime PkP_kPk​ in the list,

N=P1P2⋯Pn+1N = P_1P_2\cdots P_n+1N=P1​P2​⋯Pn​+1

leaves a remainder of 111 when divided by PkP_kPk​. Therefore, none of the listed primes divides NNN.

There are two possibilities:

  1. NNN is prime.
    Then NNN is a prime not included in the supposed complete list.

  2. NNN is composite.
    Every composite number has a prime factor. Since none of the listed primes divides NNN, at least one of its prime factors must be a new prime not in the list.

In either case, a prime exists outside the supposedly complete list. This contradiction proves that the list of primes cannot end.

For any finite collection of primes, the number formed by multiplying them all together and adding 111 leads to a new prime, either directly or through its prime factors.

The number NNN itself does not always have to be prime. The proof only requires that it have a prime factor not included in the original list.


The Fundamental Theorem of Arithmetic

The Fundamental Theorem of Arithmetic states that every natural number greater than 111 can be expressed as a product of prime numbers in essentially one unique way.

“Essentially unique” means that the order of the factors does not matter. For example,

2×3×52 \times 3 \times 52×3×5

and

5×2×35 \times 2 \times 35×2×3

represent the same prime factorization.

Example: Factoring 612612612

To factor 612612612 into primes:

  1. Divide by 222:

    612=2×306.612=2 \times 306.612=2×306.
  2. Divide 306306306 by 222:

    306=2×153.306=2 \times 153.306=2×153.
  3. Divide 153153153 by 333:

    153=3×51.153=3 \times 51.153=3×51.
  4. Divide 515151 by 333:

    51=3×17.51=3 \times 17.51=3×17.
  5. Both 222, 333, and 171717 are prime, so the factorization is complete:

    612=22×32×17.612=2^2 \times 3^2 \times 17.612=22×32×17.

Equivalently,

612=2×2×3×3×17.612=2 \times 2 \times 3 \times 3 \times 17.612=2×2×3×3×17.

The divisibility test for 333 used in this process is that a number is divisible by 333 when the sum of its digits is divisible by 333. For 153153153,

1+5+3=9,1+5+3=9,1+5+3=9,

and 999 is divisible by 333, so 153153153 is divisible by 333.

The uniqueness of prime factorization means that any valid method of factoring 612612612 must eventually produce the same prime factors:

2, 2, 3, 3, 17,2,\ 2,\ 3,\ 3,\ 17,2, 2, 3, 3, 17,

possibly in a different order.

Prime factorization is central to many results in number theory because it reveals the basic multiplicative structure of every natural number.


Perfect Numbers

A perfect number is a natural number equal to the sum of all its positive divisors other than itself.

The divisors being added are sometimes called the proper divisors.

Examples of Divisors

  • The positive divisors of 121212 are

    1, 2, 3, 4, 6, 12.1,\ 2,\ 3,\ 4,\ 6,\ 12.1, 2, 3, 4, 6, 12.
  • The positive divisors of 777 are

    1, 7.1,\ 7.1, 7.
  • The positive divisors of 666 are

    1, 2, 3, 6.1,\ 2,\ 3,\ 6.1, 2, 3, 6.
  • The positive divisors of 282828 are

    1, 2, 4, 7, 14, 28.1,\ 2,\ 4,\ 7,\ 14,\ 28.1, 2, 4, 7, 14, 28.

Examples of Perfect and Non-Perfect Numbers

The number 666 is perfect because its proper divisors sum to 666:

1+2+3=6.1+2+3=6.1+2+3=6.

The number 282828 is perfect because

1+2+4+7+14=28.1+2+4+7+14=28.1+2+4+7+14=28.

The number 121212 is not perfect because

1+2+3+4+6=16≠12.1+2+3+4+6=16 \neq 12.1+2+3+4+6=16=12.

The number 777 is not perfect because its only proper divisor is 111:

1≠7.1 \neq 7.1=7.

The ancient Greeks considered perfect numbers especially significant because of the balance between the number and the sum of its proper divisors.


Euclid’s Construction of Even Perfect Numbers

Euclid’s Proposition 36 in Book 9 gives a method for constructing perfect numbers.

Begin with powers of 222:

1, 2, 4, 8, 16,…1,\ 2,\ 4,\ 8,\ 16,\ldots1, 2, 4, 8, 16,…

Continue until the sum of the terms is prime. Then multiply that prime sum by the final power of 222. The result is perfect.

First Example

The sum

1+2=31+2=31+2=3

is prime. Multiplying the sum by the last term, 222, gives

3×2=6.3 \times 2=6.3×2=6.

Thus, 666 is perfect.

Second Example

The sum

1+2+4=71+2+4=71+2+4=7

is prime. Multiplying by the final term, 444, gives

7×4=28.7 \times 4=28.7×4=28.

Thus, 282828 is perfect.

A Sum That Does Not Work

The sum

1+2+4+8=151+2+4+8=151+2+4+8=15

is not prime, so this sequence does not produce a perfect number through Euclid’s construction.

The next sum is

1+2+4+8+16=31,1+2+4+8+16=31,1+2+4+8+16=31,

which is prime. Multiplying by 161616 gives

31×16=496,31 \times 16=496,31×16=496,

another perfect number.

Geometric-Series Form

The powers of 222 form a geometric progression. The sum

1+2+22+⋯+2n−11+2+2^2+\cdots+2^{n-1}1+2+22+⋯+2n−1

is

2n−12−1=2n−1.\frac{2^n-1}{2-1}=2^n-1.2−12n−1​=2n−1.

Therefore, Euclid’s construction can be written as follows:

If 2n−12^n-12n−1 is prime, then 2n−1(2n−1)2^{n-1}(2^n-1)2n−1(2n−1) is a perfect number.

The resulting perfect number has the form

2n−1(2n−1).2^{n-1}(2^n-1).2n−1(2n−1).

This construction explains the first examples:

  • For n=2n=2n=2:

    21(22−1)=2×3=6.2^{1}(2^2-1)=2 \times 3=6.21(22−1)=2×3=6.
  • For n=3n=3n=3:

    22(23−1)=4×7=28.2^{2}(2^3-1)=4 \times 7=28.22(23−1)=4×7=28.
  • For n=5n=5n=5:

    24(25−1)=16×31=496.2^{4}(2^5-1)=16 \times 31=496.24(25−1)=16×31=496.

Mersenne Primes

Primes of the form

2n−12^n-12n−1

are called Mersenne primes.

Not every number of this form is prime. For example,

24−1=15,2^4-1=15,24−1=15,

and 151515 is composite because

15=3×5.15=3 \times 5.15=3×5.

When 2n−12^n-12n−1 is prime, it can be used in Euclid’s construction of a perfect number.

Mersenne primes are particularly important in the search for large primes because their special form makes them easier to test computationally than arbitrary large numbers. However, testing and discovering very large primes still requires substantial computational effort.

Large Prime Searches

Finding very large primes is difficult. Euclid’s proof gives a theoretical way to show that new primes must exist, but directly multiplying a huge collection of known primes and adding 111 is not practical for discovering new primes. The resulting number may be enormous and difficult to factor.

A historically reported record prime had the form

243,112,609−1,2^{43{,}112{,}609}-1,243,112,609−1,

a Mersenne prime containing approximately twelve million decimal digits. Such discoveries require computers to perform extensive calculations and primality tests.


Modern Importance of Prime Numbers

For many centuries, number theory was often viewed as a recreational or abstract branch of mathematics. In modern times, prime numbers have become essential to cryptography, the mathematics of securing digital information.

Prime Factorization and Security

It is easy for a computer to multiply two large prime numbers together. If the primes are

P1andP2,P_1 \quad \text{and} \quad P_2,P1​andP2​,

then calculating

N=P1P2N=P_1P_2N=P1​P2​

is relatively efficient.

However, if someone is given only the large composite number NNN, recovering P1P_1P1​ and P2P_2P2​ may be extremely difficult when the primes are sufficiently large. This difference between easy multiplication and difficult factorization is used in encryption systems.

The basic security idea is:

  • The product of large primes can be made public.

  • The original prime factors can be kept secret.

  • Anyone can use the public number in an encryption process.

  • Only someone who knows the hidden factors can efficiently decrypt or authenticate the information.

This asymmetry creates information that one party knows while others cannot practically determine it, even with substantial computing resources. Prime-based encryption helps protect bank details, private messages, and other sensitive data transmitted over the internet.

The difficulty of factoring large composite numbers is a major foundation of several modern encryption methods.


The Greatest Common Divisor

The greatest common divisor, or GCD, of two natural numbers is the largest positive integer that divides both numbers.

For example, consider 612612612 and 939393.

Their prime factorizations are

612=22×32×17612=2^2 \times 3^2 \times 17612=22×32×17

and

93=3×31.93=3 \times 31.93=3×31.

The only prime factor they share is 333, so

gcd⁡(612,93)=3.\gcd(612,93)=3.gcd(612,93)=3.

Prime factorization can be used to find a GCD, but factoring large numbers may be difficult. Euclid developed a more efficient method that finds the GCD without requiring complete prime factorizations.


Euclidean Algorithm

The Euclidean algorithm is a systematic sequence of division steps used to calculate the greatest common divisor of two numbers.

It relies on the key fact that if

a=bq+r,a=bq+r,a=bq+r,

then

gcd⁡(a,b)=gcd⁡(b,r).\gcd(a,b)=\gcd(b,r).gcd(a,b)=gcd(b,r).

The common divisors of aaa and bbb are exactly the common divisors of bbb and the remainder rrr.

Why the Reduction Works

Suppose a number ddd divides both aaa and bbb. Since

a=bq+r,a=bq+r,a=bq+r,

subtracting bqbqbq from aaa gives

r=a−bq.r=a-bq.r=a−bq.

Because ddd divides both aaa and bbb, it also divides a−bqa-bqa−bq, and therefore divides rrr.

Conversely, if ddd divides both bbb and rrr, then it divides

bq+r=a.bq+r=a.bq+r=a.

Thus, the common divisors of (a,b)(a,b)(a,b) and (b,r)(b,r)(b,r) are the same, so their greatest common divisors are equal.

Example: Finding gcd⁡(612,93)\gcd(612,93)gcd(612,93)

Start by dividing the larger number by the smaller number:

612=6×93+54.612=6 \times 93+54.612=6×93+54.

Therefore,

gcd⁡(612,93)=gcd⁡(93,54).\gcd(612,93)=\gcd(93,54).gcd(612,93)=gcd(93,54).

Continue dividing:

93=1×54+39,93=1 \times 54+39,93=1×54+39,

so

gcd⁡(93,54)=gcd⁡(54,39).\gcd(93,54)=\gcd(54,39).gcd(93,54)=gcd(54,39).

Next,

54=1×39+15,54=1 \times 39+15,54=1×39+15,

so

gcd⁡(54,39)=gcd⁡(39,15).\gcd(54,39)=\gcd(39,15).gcd(54,39)=gcd(39,15).

Then,

39=2×15+9,39=2 \times 15+9,39=2×15+9,

so

gcd⁡(39,15)=gcd⁡(15,9).\gcd(39,15)=\gcd(15,9).gcd(39,15)=gcd(15,9).

Next,

15=1×9+6,15=1 \times 9+6,15=1×9+6,

so

gcd⁡(15,9)=gcd⁡(9,6).\gcd(15,9)=\gcd(9,6).gcd(15,9)=gcd(9,6).

Then,

9=1×6+3,9=1 \times 6+3,9=1×6+3,

so

gcd⁡(9,6)=gcd⁡(6,3).\gcd(9,6)=\gcd(6,3).gcd(9,6)=gcd(6,3).

Finally,

6=2×3+0.6=2 \times 3+0.6=2×3+0.

The last nonzero remainder is 333, so

gcd⁡(612,93)=3.\boxed{\gcd(612,93)=3}.gcd(612,93)=3​.

General Procedure

To find the GCD of two positive integers:

  1. Divide the larger number by the smaller number.

  2. Record the remainder.

  3. Replace the larger number with the smaller number and the smaller number with the remainder.

  4. Repeat the process.

  5. Stop when the remainder is 000.

  6. The last nonzero remainder is the GCD.

The algorithm must eventually stop because the positive remainders continually decrease. Once a remainder of 000 is reached, the preceding nonzero remainder divides the number before it exactly and is the greatest common divisor.

The Euclidean algorithm finds the GCD efficiently by repeatedly replacing a pair of numbers with a smaller pair having the same common divisors.

The method is historically important as one of the earliest known examples of an algorithm: a finite, logical, and systematic sequence of steps that reliably solves a problem.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent