Skip to content

The Folded Pentagon ​

The cosine of 36 degrees is half the golden ratio: cos⁡36∘=φ/2≈0.809\cos 36^\circ = \varphi/2 \approx 0.809. That number is exactly the rate at which the Collatz map forgets a starting residue modulo 5, and the reason is a pentagon. Sort the five residues into three cells, and mass spread evenly within each cell moves under the map exactly as a random walk moves on a pentagon folded in half along its mirror; a pentagon walk forgets its start by a factor cos⁡36∘\cos 36^\circ per step. This is proved, it belongs to the modulus 5 and to no other (multiples of 5 only inherit it), and it is a statement about residues only: it reads the same for 3x−13x-1 once every residue is negated, so it is not progress toward the Collatz conjecture.

This page is one thread of Thirty-Six, which asked whether four classical facts about 36 say anything about Collatz; the fact here was cos⁡36∘=φ/2\cos 36^\circ = \varphi/2. The answer keeps the cosine and drops the 36: the angle is 180∘/5180^\circ/5, and the arithmetic is 5=3+25 = 3 + 2.

Two branches modulo 5 ​

Use the shortcut map T(n)=n/2T(n) = n/2 for even nn and (3n+1)/2(3n+1)/2 for odd nn. Modulo 5, halving is multiplying by 3 (because 2⋅3≡12 \cdot 3 \equiv 1), so the two branches become

e(x)=x2≡3x,o(x)=3x+12≡3−x(mod5).\begin{aligned} e(x) &= \frac{x}{2} \equiv 3x, \\ o(x) &= \frac{3x+1}{2} \equiv 3 - x \pmod 5. \end{aligned}

The even branch is a multiplication of order 4 that fixes 00. The odd branch is a reflection: apply it twice and you are back where you began, and it fixes 4≡−14 \equiv -1. Which branch an integer takes is decided by its parity, and parity knows nothing about the residue modulo 5, so the object to study is the fair mixture of the two,

K5f(x)=12f(e(x))+12f(o(x)),K_5 f(x) = \tfrac12 f\bigl(e(x)\bigr) + \tfrac12 f\bigl(o(x)\bigr),

the matrix that Matthews and Watts attached to Collatz-type maps modulo mm in 1985. Read on mass, it moves half of the mass at xx to e(x)e(x) and half to o(x)o(x). (It is not the operator of The Transfer Operator page, which is weighted, un-shortcut and modulo multiples of 6; nothing here depends on it.)

The fold ​

Theorem A (folded pentagon; proved). In Z/5\mathbb{Z}/5 call {1}\{1\} the apex, {2,3}\{2, 3\} the near pair and {0,4}\{0, 4\} the far pair, and spread mass evenly over each cell. One step sends the apex's mass to the near pair; the near pair's mass half to the apex and half to the far pair; the far pair's mass half to the near pair, while half stays; and every cell receives its mass evenly. So evenly spread mass stays evenly spread, and on it K5K_5 acts exactly as a simple random walk on a pentagon acts on mass that is symmetric about one vertex, the apex: the near pair is its two neighbours, the far pair the two far vertices. The eigenvalues are 11, cos⁡72∘=1/(2φ)\cos 72^\circ = 1/(2\varphi) and cos⁡144∘=−cos⁡36∘=−φ/2\cos 144^\circ = -\cos 36^\circ = -\varphi/2.

Three lines of arithmetic with fractions, before reducing modulo anything. The cells have rational names: the far pair is {0,−1}\{0, -1\}, the fixed points of the two branches; the near pair is {12,−12}\{\tfrac12, -\tfrac12\}; the apex is −14-\tfrac14.

  • e(0)=0e(0) = 0, o(0)=12o(0) = \tfrac12, e(−1)=−12e(-1) = -\tfrac12, o(−1)=−1o(-1) = -1: the far pair goes to itself and to the near pair.
  • e(±12)=±14e(\pm\tfrac12) = \pm\tfrac14, o(−12)=−14o(-\tfrac12) = -\tfrac14, o(12)=54o(\tfrac12) = \tfrac54: the near pair goes to the apex twice, and to 14\tfrac14 and 54\tfrac54.
  • e(−14)=−18e(-\tfrac14) = -\tfrac18 and o(−14)=18o(-\tfrac14) = \tfrac18.

Modulo 5 the loose ends close up: 14≡−1\tfrac14 \equiv -1, 54≡0\tfrac54 \equiv 0, and {18,−18}={2,3}={−12,12}\{\tfrac18, -\tfrac18\} = \{2, 3\} = \{-\tfrac12, \tfrac12\}. A pentagon's vertex, its two neighbours and its two far vertices exchange mass by the same three rules.

Three panels. Left, the residues 0 to 4 on a pentagon in additive order, with blue arrows for the even branch x to 3x and orange arrows for the odd branch x to 3 minus x. Middle, the same residues placed by role with their fractions from the proof, 1 at the apex, 2 and 3 beside it, 4 and 0 at the bottom with a loop on each. Right, a regular pentagon of circumradius 1, the midpoint of a vertex's two neighbours on a dashed chord at height cos 72 degrees, the opposite side at distance cos 36 degrees, half the golden ratio

Where is φ\varphi? A step of the walk replaces each vertex by the average of its two neighbours. On a circle of radius 1, with the vertices joined in the usual order, that average sits on the vertex's own side of the centre at distance cos⁡72∘\cos 72^\circ (the dashed chord in the right-hand panel). Joined as a star, the two neighbours are the ends of the opposite side, and their midpoint lies across the centre at distance cos⁡36∘\cos 36^\circ, the apothem (the bottom side). The larger, φ/2\varphi/2, is the factor by which the memory of the start shrinks at each step.

On actual integers ​

Corollary (proved; checked by brute force for every k≤16k \le 16). Fix kk and take the 2k2^k integers n≡1(mod5)n \equiv 1 \pmod 5 in any stretch of 5⋅2k5 \cdot 2^k consecutive integers. The residues Tk(n) mod 5T^k(n) \bmod 5 are distributed exactly as a simple random walk on a pentagon after kk steps: residue 11 is the start, {2,3}\{2, 3\} its neighbours, {0,4}\{0, 4\} the far vertices. The proportion back at residue 1 is

2k+2(−1)kLk5⋅2k,\frac{2^k + 2(-1)^k L_k}{5 \cdot 2^k},

where Lk=2,1,3,4,7,11,18,…L_k = 2, 1, 3, 4, 7, 11, 18, \dots are the Lucas numbers, and the distance from the uniform distribution decays at rate exactly cos⁡36∘=φ/2\cos 36^\circ = \varphi/2 per step.

For k=8k = 8 the 256 integers land 57,70,36,36,5757, 70, 36, 36, 57 on the residues 0,1,2,3,40, 1, 2, 3, 4. The proof is two classical facts: the last kk binary digits of nn decide its first kk parities, and each of the 2k2^k parity patterns comes from exactly one such ending (Terras); and those digits are independent of n mod 5n \bmod 5 (the Chinese remainder theorem). The return counts 1,0,2,0,6,2,20,14,70,…1, 0, 2, 0, 6, 2, 20, 14, 70, \dots are OEIS A054877, closed walks on a pentagon, where the Lucas formula already appears. Those numbers are known; the addition here is that Tk(n) mod 5T^k(n) \bmod 5 produces them.

Below, move the start off residue 1 and the two laws part company; switch to 3x−13x-1 and the same pentagon returns with every residue negated.

Rule:

The 256 integers n ≡ 1 (mod 5) from 1 to 1,276, each pushed through 8 steps of T(n) = n/2 or (3n+1)/2.

Where the integers land, mod 5

residue 1 (apex): 70 of 256 integers, 27.3%; pentagon walk: 701apex70residue 2 (near): 36 of 256 integers, 14.1%; pentagon walk: 362near36residue 4 (far): 57 of 256 integers, 22.3%; pentagon walk: 574far57residue 0 (far): 57 of 256 integers, 22.3%; pentagon walk: 570far57residue 3 (near): 36 of 256 integers, 14.1%; pentagon walk: 363near36
  • Tk(n) mod 5 (area = share)
  • pentagon walk
  • start
Distance from uniform0.11875
(φ/2)k = cosk 36°0.18351
Ratio of the two (levels off as k grows)0.6471

Counted two ways

VertexResidueTk(n)WalkAgree?
apex ◆ start17070=
near23636=
far45757=
far05757=
near33636=
total256256
✓ Same law. After 8 steps the integers sit on the residues exactly as a walk on the pentagon sits on its vertices, 8 steps out from the apex.
Back at the apex70
Lucas formula (2k + 2·Lk)/5, with L8 = 4770

Every integer is iterated in your browser; the walk is computed separately, by stepping a five-cycle 8 times from the start vertex. Distance from uniform is total variation: half the sum of |share − 1/5| over the five residues. Its ratio to (φ/2)k levels off as k grows, from any start; that levelling off is what decay at rate φ/2 means.

What the fold is not ​

  • The five residues do not walk on a pentagon. The matrix 2K52K_5 has characteristic polynomial x(x−1)(x−2)(x2+x−1)x(x-1)(x-2)(x^2+x-1); a pentagon has (x−2)(x2+x−1)2(x-2)(x^2+x-1)^2, and no relabelling turns one into the other (proved). The fold is essential: residue 2 always goes to the apex and residue 3 always to the far pair, and only their even mixture behaves like a pair of pentagon vertices.
  • Only the start n≡1n \equiv 1 gives the pentagon law. From n≡2n \equiv 2 every integer lands on residue 1 after one step, where a walker on a neighbouring vertex would split evenly. No relabelling of the residues rescues the starts 0, 2, 3, 4 (all 120 labellings checked). The rate φ/2\varphi/2 still holds from every start: after 1, −cos⁡36∘-\cos 36^\circ is the eigenvalue of K5K_5 largest in size, and its eigenvector has no zero entry.
  • It is not the pentagon you would draw first. The fold gives the pentagon 1–2–4–0–3 (or equally 1–2–0–4–3: it cannot tell the two far residues apart), not the additive pentagon 0–1–2–3–4 or its pentagram.
  • Folding a pentagon is textbook. It is the quotient of the 5-cycle by a reflection (Godsil and Royle, Algebraic Graph Theory). The only content of Theorem A is that the 3x+13x+1 map modulo 5 has this quotient. A short search did not turn that up; it is elementary and may be folklore.

Why 5: one half is the golden ratio ​

Call the two multipliers a=1/2a = 1/2 and b=3/2b = 3/2. Always b=a+1b = a + 1, because 3=2+13 = 2 + 1. Modulo 5, where a≡3a \equiv 3 and b≡4b \equiv 4, two more things happen at once: b=a2b = a^2 and b=−1b = -1. The first says a2=a+1a^2 = a + 1: one half is the golden ratio of the field with five elements. The second makes the odd branch a reflection, which needs 3/2≡−13/2 \equiv -1, that is, a modulus dividing 3+23 + 2. So 5=3+2=32−225 = 3 + 2 = 3^2 - 2^2 is the only modulus prime to 6 at which a branch of the map is an involution, and the only one at which the three lines of the proof close up (both proved).

Only 5: elsewhere an eigenvalue leaves the real line ​

Theorem B (proved for every modulus). Let N>1N \gt 1 be prime to 6, and call level NN the part of the chain modulo NN that is new at NN, not already visible modulo a smaller divisor. At level 5 every eigenvalue of KK is real: 12\tfrac12, 00, cos⁡72∘\cos 72^\circ and −cos⁡36∘-\cos 36^\circ. At every other level the squares of the eigenvalues sum to zero and the eigenvalues are not all zero, so some of them are not real. Hence 5 is the only level at which every eigenvalue is the cosine of a rational angle.

The proof counts fixed points. The trace of AN=2KNA_N = 2K_N counts those of the two branches, x=0x = 0 and x=−1x = -1. The trace of AN2A_N^2 counts those of the four two-letter words; three of them have exactly one. The fourth, odd then odd, is x↦(9x+5)/4x \mapsto (9x+5)/4, whose fixed points solve 5(x+1)≡05(x+1) \equiv 0: one solution, or five when 5 divides NN. So

tr⁡AN=2,tr⁡AN2=3+gcd⁡(5,N),\operatorname{tr} A_N = 2, \quad \operatorname{tr} A_N^2 = 3 + \gcd(5, N),

and it is 9−4=59 - 4 = 5 again. Level by level, the squared eigenvalues of AA sum to 4 at level 5 and to 0 at every other level above 1; real numbers whose squares sum to zero all vanish, and the thread shows that they do not. Both trace formulas were also checked by direct count for N≤5000N \le 5000.

Census (computed, exact). Over all 132 moduli prime to 6 from 5 to 400, and over every prime up to 7993, the golden pair at level 5 is the only irrational eigenvalue that is the cosine of a rational angle. The only other such cosines are 00 and ±12\pm\tfrac12. Whether this holds at every modulus is open. As a control, the 5x+15x+1 map has no irrational cosine at any modulus up to 200, and its only all-real level in that range is 3. The pentagon tells the multiplier 3 from the multiplier 5. It does not tell +1+1 from −1-1.

Eleven, and three primes without an explanation ​

A theorem proved earlier in this project (Theorem C in the thread README) puts eigenvalues of the form 12\tfrac12 times a root of unity in the spectrum of KpK_p whenever 3 has even order modulo the prime pp. A scan of every prime up to 7993 (computed) finds further eigenvalues of that form at only three primes, 11, 31 and 37, and a stranger of another kind at 41.

  • 11 is explained (proved). Replace the two branches by x/dx/d and ((d+1)x+1)/d((d+1)x+1)/d (Collatz is d=2d = 2; for larger dd this is a formal mixture, not the residue chain of a map). The eigenvalue +12+\tfrac12 appears when pp divides d2+d−1d^2 + d - 1 and −12-\tfrac12 when pp divides d2+3d+1d^2 + 3d + 1; at d=2d = 2 these are 5 and 11. At 5 the eigenvector sits on the two fixed points {0,−1}\{0, -1\}; at 11 on the trivial cycle {1,2}\{1, 2\}, whose two outside preimages, 44 and 1/31/3, coincide modulo 11 (the +12+\tfrac12 at 11 then follows from a symmetry of its spectrum). Both conditions say that the divisor 2 is, up to sign, a power of the golden ratio of the field: 2≡−φ(mod5)2 \equiv -\varphi \pmod 5 and 2≡−φ2(mod11)2 \equiv -\varphi^2 \pmod{11}.
  • 31, 37 and 41 are not explained. At 31 there is an extra +12+\tfrac12; at 37 both +12+\tfrac12 and −12-\tfrac12 occur twice; at 41 there are five eigenvalues with (2λ)5=−3(2\lambda)^5 = -3. Computed searches found no eigenvector carried by two points or by any small set, and no third low-degree condition on dd. The base rate is high: at p=37p = 37, 9 of the 34 members of that family have a ±12\pm\tfrac12 beyond the theorem's, so chance is not excluded. That 37=36+137 = 36 + 1 has no mechanism behind it, and reading 36 into it would be numerology.

What this page does not claim ​

  • Nothing about the conjecture, and nothing about 36. Every statement here is about residues modulo NN, and every one is sign-blind: for 3x−13x-1 Theorem A holds with every residue negated (apex 4, near pair 2 and 3, far pair 0 and 1; checked directly). The 3x−13x-1 map has cycles of its own, such as 5→7→10→55 \to 7 \to 10 \to 5, so nothing that fails to see the sign can settle 3x+13x+1. The exponent pair (2,2)(2,2) enters once, as the two-letter word odd then odd in Theorem B, and not as the number 36.
  • No ladder. Elsewhere in this project the golden ratio enters through approximation, a ladder of ever better fractions. Here φ/2\varphi/2 is exact and there is no ladder: no golden eigenvalue at the levels 25, 125 or 55, nor at the Fibonacci and Lucas primes 11, 13, 29, 89, 199 (computed; the extra eigenvalues at 11 are ±12\pm\tfrac12). cos⁡36∘=φ/2\cos 36^\circ = \varphi/2 is a fact about the 3x+13x+1 map modulo 5, and it is a fact about the regular pentagon.

Where this lives in the repo ​

  • Research note: Thirty-Six, section 1
  • Thread, with every proof, table and the skeptic pass: scripts/thirty_six/golden_kernel/README.md
  • Scripts there: q31_pentagon.py (Theorem A), q32b_real_spectrum_theorem.py (Theorem B), q32_kronecker_census.py (census), q34c_family_base_rate.py (the two golden conditions), and verify/ (the second pass, with separate code)
  • This page's figure and the check of the interactive counts: scripts/thirty_six/site_figures/fig_folded_pentagon.py, check_pentagon_walk.mjs
  • Companion page: Thirty-Six