Numbers as figures
Why the figure n/k falls into exactly as many parts as the greatest common divisor says, why ten is the first number with all four kinds of figure, and why primes are exactly the simplexes without a compound figure.
The Geometry and Number theory sections of this website rest on one observation: if you join every k-th point of a regular n-gon, the resulting figure reveals how the numbers n and k relate to each other (see The key to the tetractys). This chapter proves that this is not an accident of the examples drawn, but holds for all numbers. The symbols are explained in the chapter The language of mathematics.
What we need
Only one notion, the greatest common divisor. Chapter 3 treats it in more detail, here the definition is enough.
Definition
For
is the greatest common divisor. If , then and are called coprime.
Examples: , since 10 and 4 are both divisible by 2, but not jointly by any larger number. , the two are coprime. , since 5 divides 10 itself.
We also need an exact definition of the figure.
Definition
Let and . On a circle lie the points at equal distances, with indices taken modulo . The figure consists of all segments
A part is a closed path that returns to its start.
In words: from a point you always move k points on and join, until you are back at the start. If some points are still free, you begin a further part at the next free point. Step sizes beyond are not needed, since steps forward give the same figure as steps backward.
How many parts a figure has
The decagon, every fourth point. After five steps you are back at the start although only five points have been reached, and a second pentagram fills the rest. The sliders draw all figures up to the dodecagon.
Theorem 1
Let be as above and . Then falls into exactly parts. Each has corners and is congruent to .
Proof
The path starting at reaches the point after steps. We have
The middle step is dividing by . The last holds because , otherwise would not have been the greatest common divisor, and because a divisor of a product that is coprime to one factor must divide the other (by the same argument as Euclid’s lemma, Chapter 4). So the smallest step count back to the start is , and the part through has corners.
The part through arises from the one through by turning it on by points. So all parts have corners, and since together they occupy each of the points exactly once, there are of them.
The part through occupies the points , that is every -th point, points at equal distances in all. A step moves places on along these points. Hence it is the figure .
∎
For example: , so falls into 2 parts with 5 corners each, and each part is , a pentagram. , so consists of 5 parts with 2 corners each, five lines through the centre.
The four kinds follow by themselves
Theorem 1 tells us which kinds of figure can exist at all. Only two questions matter: does the figure fall into several parts, that is ? And is each part a polygon or a star, that is or ?
| , polygon | , star | |
|---|---|---|
| , one part | Polygon, | Star polygon, |
| , several parts | Compound polygon, | Compound star, |
There are no other possibilities. The four basic figures of the site are therefore not a selection but the complete list. There is one borderline case: for each part has only two corners, and the figure consists of lines through the centre.
Corollary 2
If with is a star, then . The pentagram is the smallest star.
Proof
From it follows that , so . For we have , and is a star.
∎
Why ten
The figures of the decagon, coloured by kind. Polygon, compound polygon, star polygon and compound star all appear together here for the first time.
Theorem 3
Ten is the smallest number whose simplex contains all four kinds of figure. In particular, is the smallest compound star.
Proof
Let be a compound star. By Theorem 1 it consists of parts, and each part is the star with . By Corollary 2, , so
Hence no number contains this kind. For all four occur: is the decagon, two pentagons, a star in a single stroke, and two pentagrams.
∎
This proof also shows where the ten comes from. It is : the figure needs at least two parts, and each part, being a star, needs at least five points. The five in turn comes from the fact that a star must jump at least two points and this jump must be less than half the number of corners. So the ten is not arbitrary, but it is no mystery either. It follows from the two, applied twice.
The primes as figures
Theorem 4
For :
By Theorem 1 this means: is prime exactly when every figure of its simplex consists of a single part.
Proof
“”: Let be prime and . Then divides , so it is 1 or . Since , it is 1.
“”: Let not be prime. Then there are with , and without loss of generality . It follows that , so , and . The condition fails for .
∎
This theorem is the precise form of what the page The order of the primes hints at: primes are the simplexes in which every figure can be drawn in a single stroke. Being divisible only by 1 and itself thus has an exact geometric counterpart.
Checked by computer: the proof in Lean
Here Lean checks two things. First Theorem 4: IsPrime is the usual definition of a prime, OnlyOnePart is the right-hand side of Theorem 4. The theorem prime_iff_onlyOnePart shows that both are the same, with the same two directions as the proof above. Then Theorem 3: kind determines the kind of a figure from the gcd alone, as in the table, and decide makes Lean work through all numbers up to 10. For the statement “no smaller number” that is a complete proof, since there are only finitely many smaller numbers.
/-! Numbers as figures: Theorem 4 and Theorem 3 -/
/-- n is larger than 1 and divisible only by 1 and n. -/
def IsPrime (n : Nat) : Prop :=
2 ≤ n ∧ ∀ d, d ∣ n → d = 1 ∨ d = n
/-- Every figure n/k with 1 ≤ k ≤ n/2 has only one part,
by Theorem 1 this means: gcd(n, k) = 1. -/
def OnlyOnePart (n : Nat) : Prop :=
∀ k, 1 ≤ k → k ≤ n / 2 → Nat.gcd n k = 1
/-- Theorem 4: The primes are exactly the simplexes
without a compound figure. -/
theorem prime_iff_onlyOnePart (n : Nat) (h : 3 ≤ n) :
IsPrime n ↔ OnlyOnePart n := by
constructor
· -- n prime: gcd(n, k) divides n, so it is 1 or n.
-- n is impossible, since n would then divide the smaller k.
intro ⟨_, hp⟩ k hk1 hk2
have hg : Nat.gcd n k ∣ n := Nat.gcd_dvd_left n k
rcases hp _ hg with h1 | hn
· exact h1
· have hdiv : n ∣ k := hn ▸ Nat.gcd_dvd_right n k
have := Nat.le_of_dvd (by omega) hdiv
omega
· -- n = d · b with d ≠ 1 and d ≠ n: then d is at most
-- n/2 and gcd(n, d) = d, so there are several parts.
intro hf
refine ⟨by omega, fun d hd => ?_⟩
obtain ⟨b, hb⟩ := hd
by_cases h1 : d = 1
· exact Or.inl h1
by_cases h2 : d = n
· exact Or.inr h2
exfalso
-- d and b are not 0, and b is not 1
have hd0 : d ≠ 0 := by
intro h0
subst h0
omega
have hb0 : b ≠ 0 := by
intro h0
subst h0
omega
have hb1 : b ≠ 1 := by
intro h0
subst h0
omega
have hdb : d * 2 ≤ n := by
have : d * 2 ≤ d * b :=
Nat.mul_le_mul_left d (by omega)
omega
have hg := hf d (by omega) (by omega)
rw [Nat.gcd_eq_right ⟨b, hb⟩] at hg
exact h1 hg
/-- The kind of the figure n/k, from the gcd alone (Theorem 1):
0 polygon, 1 compound polygon, 2 star polygon,
3 compound star, 4 lines through the centre -/
def kind (n k : Nat) : Nat :=
if 2 * k = n then 4
else if k = 1 then 0
else if Nat.gcd n k = 1 then 2
else if Nat.gcd n k = k then 1
else 3
/-- Does kind a occur among n/1 to n/(n/2)?
Compound polygons count only with area (n/k ≥ 3). -/
def hasKind (n a : Nat) : Bool :=
(List.range (n / 2 + 1)).any fun k =>
1 ≤ k && kind n k == a && (a != 1 || 3 * k ≤ n)
def allFour (n : Nat) : Bool :=
3 ≤ n && hasKind n 0 && hasKind n 1
&& hasKind n 2 && hasKind n 3
/-- Theorem 3: Ten contains all four kinds … -/
theorem ten_all_four : allFour 10 = true := by decide
/-- … and no smaller number does. -/
theorem none_smaller :
∀ n, n < 10 → allFour n = false := by
decideTry it in the browser at live.lean-lang.org ↗How to read Lean
The exception 12
The page The simplex: the solid form of number says that all composite numbers from ten on contain a compound star, with a single exception, 12. This too can be proven.
Theorem 5
A composite number contains no compound star exactly when .
Proof
Let be the smallest prime divisor of and . If there is a number with and , then is a step size with , so with , and is a compound star. Such a exists for every except : for odd take , for with even take , with odd take . Both are odd and coprime to .
What remains is . Since is the smallest prime divisor of , is at most the smallest prime divisor of . This gives (), or (), () and (). For these five numbers, going through all step sizes shows that none gives a compound star.
∎
So 12 is not the last exception by chance: it is , and 6 is the only number from 5 on without a single star.
What has been proven and what has not
What is proven: the figures of the simplexes are an exact picture of divisibility. Every statement about gcd and divisors can be translated into a statement about figures and back, and the ten and the primes have a demonstrable special position in it.
What is not proven by this is that these figures reveal anything about the distribution of the primes that one would not know without them. The translation is exact, but it is a translation. Whether looking at the figures opens up new questions or new answers is the question the Number theory section pursues, and there theorem, finding and interpretation have to be told apart each time.
Sources and further reading
Sources
- Louis Poinsot, Mémoire sur les polygones et les polyèdres, Journal de l’École polytechnique 10, 1810
- H. S. M. Coxeter, Regular Polytopes, 3rd ed. New York 1973
Further reading
- Holger Ullmann, tetraktys.de, since 2010