MathomalyA field guide to patterns, proofs and open questions

ExplorationsTurn a little less than 137.5° and the seeds crowd into arms with gaps between

Sunflower Spirals and the Golden Angle

Known as Sunflower phyllotaxis

Exhaustively checkedcontinued fractionsgolden ratiophyllotaxisintermediate

Put the first seed at the centre and every seed after it one turn of 137.5° from the one before, a little further out each time, with its distance from the centre growing as the of its number. The seeds spread evenly, in curving spirals. Turn 137° instead, only half a degree less, and the same 800 seeds crowd into a few bold arms with visible gaps between them. is unusually hard to approximate by simple of a turn, which helps explain why the spokes fade near it.

Interactive laboratory

Current view: The seeds

See where each seed goes, and highlight one family of spiral arms.

The seeds · 800 seeds137.507764°
Play the figure

Drag the marker round the rim to turn the seeds. Arrow keys adjust the angle by 0.1°.

800 of 800 seeds · 137.507764° apart · 800 directions

The numbers behind the picture
Gap in seed numbersSeeds whose nearest neighbour is that far along
55471
34203
2178
1329
812
53
11
21
SeedDirection (degrees)Distance from centre
000.000
1137.5077640.035
2275.0155280.050
352.5232920.061
4190.0310560.071
5327.538820.079
6105.0465840.087
7242.5543480.094
820.0621120.100
9157.5698760.106
10295.077640.112
1172.5854040.117
12210.0931680.123
13347.6009320.128
14125.1086960.132
15262.616460.137
1640.1242240.142
17177.6319880.146
18315.1397520.150
1992.6475160.154
20230.155280.158
a seed
one dot, placed one turn of the angle after the one before
a highlighted arm
every seed whose number is a multiple of the arm count, joined in order

Each dot is one seed. Seed 0 is the centre and the last seed is on the outer rim. A seed is placed one turn of the chosen angle after the one before, and its distance from the centre is proportional to the square root of its number, so the disk out to that distance gains the same area with each seed. The red line joins every seed whose number is a multiple of the chosen arm count, in order. That is one arm of a family of spirals with that many arms.

137.507764° between seeds, 800 seeds, 800 drawn. Counted over all seeds, they point in 800 different directions, and the nearest neighbours of most seeds differ in number by 55 (471 seeds), 34 (203 seeds), 21 (78 seeds). Spiral families that fit this many seeds, from the angle’s convergents: 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 and 377. These are measurements of this picture, not a claim about any flower.

Angle
137.507764°
Seeds
800
Directions
800

Things to try

Things to try with this figure
  • directions
  • What breaks it. An angle close to the golden angle packs seeds about as evenly as the golden angle itself. Try: The seed count is large enough that a small error, added once for each seed, has grown into a visible gap. A half-degree error does this within a few hundred seeds.

  • With 800 seeds, move the angle away from the golden angle in steps of 0.1°. How far do you have to go before the pattern stops looking even, and does it matter which way you go?

    Hint

    Use the nudge buttons and watch the number of directions in the observation. Compare 137.5° with 137.6° and 137.4°.

  • At 135° the seeds fall into spokes. How many, and what fraction of a turn is 135°? Predict the number for 144° before you set it.

    Hint

    Write the angle as a fraction of 360 in lowest terms. The denominator is the number of spokes.

  • At the golden angle with 2,000 seeds, highlight each family in turn. Which numbers of arms are on offer, and what do they have in common?

    Hint

    Open the table of numbers behind the picture and compare the commonest gaps between a seed and its nearest neighbour.

How this page is laid out

The turn between seeds

One full turn is 360°. The slider moves a hundredth of a degree at a time.

The seeds

Highlight one spiral family

The number of arms is a denominator of a convergent of the angle. Seeds numbered 0, q, 2q and so on make one arm of the q.

Grow them one at a time

Speed sets how fast Run adds seeds.

Speed

Moves how many seeds are on the page. Their places never change as more arrive.

Cases worth seeing

What is going on

Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.

Worked by handAn of 137.5° between seeds, written as a of a full turn and unwound with Euclid's algorithm. The quotients it produces are the , and the best fractions of a turn can be read off from them.
  1. the angle as a fraction of a full turn137.5 ÷ 360 = 275/72055/144dividing top and bottom by 5 gives the in lowest terms; after 144 seeds the directions repeat
  2. Euclid’s algorithm on 55 and 144144 = 2×55 + 34, 55 = 1×34 + 21, 34 = 1×21 + 13, 21 = 1×13 + 8, 13 = 1×8 + 5, 8 = 1×5 + 3, 5 = 1×3 + 2, 3 = 1×2 + 1, 2 = 2×1[0; 2, 1, 1, 1, 1, 1, 1, 1, 2]the quotients, in order, are the of 55/144; seven 1s in a row is the ’s signature
  3. the best fractions of a turn, one for each prefix of the quotients1/2, 1/3, 2/5, 3/8, 5/13, 8/21, 13/34, 21/55, 55/1442, 3, 5, 8, 13, 21, 34, 55, 144each is the closest of a turn to the among all with a that small; the denominators, the spiral counts, are
The laboratory does exactly this for any you set, in exact whole-number arithmetic. In the -that-fit view each bar is one of these convergents. When the angle is an exact fraction of a turn, the seeds point in as many directions as its , or in as many as there are seeds if that is fewer.
The 137.5° is to four figures, yet it is exactly 55/144 of a turn, so after 144 seeds the directions start to repeat. The true golden angle never repeats. That small difference is the whole subject of the boundary card.
01

What you are seeing

One seed at a time, each a fixed turn from the last

Start with a single seed at the centre. Place the second seed a little way out and turn it by the chosen , say 137.5° round from the first. Place the third a little further out and turn it by the same angle again, and keep going. Each seed is as far from the centre as the of its number. The disk out to that distance gains the same area with each seed. This is Vogel's model of a sunflower head.

At , about 137.5°, the seeds spread out without gaps, and curving spirals appear that nobody drew: they are only where neighbouring seeds happen to line up. Count the spirals that turn one way and then the other. Highlight a family with the arm buttons, which joins every seed whose number is a multiple of that count, and the family shows as one spiral arm among several.

Now move the by half a degree. The same number of seeds, placed by the same rule, crowds into a few bold arms with the gaps showing between them.

02

Why it starts to make sense

A of a turn repeats, so the seeds fall on spokes

Suppose the is exactly a third of a turn, 120°. Seed 3 is a full turn from seed 0, so it points the same way, and so does seed 6. Every seed lands on one of three spokes, and the pattern is three rays with seeds spread along them. Any angle that is a simple of a turn does the same, with as many spokes as the fraction's : 135° is three eighths of a turn and gives eight spokes.

An that is only close to a simple does something quieter. Take 137.0°. Eight turns of it come to 1,096°, which is three full turns and 16° more, so every eighth seed sits almost where the seed eight before it sat, 16° further round each time. The drift is what makes a spiral and not a spoke. The closer the angle is to a fraction with a small , the longer the drift takes to open a gap, and the more clearly the spokes show.

So the that packs best is one that is not close to any simple of a turn. That is a question about how well a number can be approximated by fractions, and are the tool that answers it.

03

The key idea

, and the number that is hardest to approximate

Any number can be written as a whole part plus the reciprocal of another number, over and over: . The whole numbers are its , and stopping the early gives the fractions that fit the number best. A large partial quotient means the fraction stopped just before it is a remarkably close fit, and a close fit to a fraction with a small is exactly what makes spokes.

's of a turn is , and its are without end. There is no large quotient anywhere, so no fraction is ever a remarkably good fit. The fractions that fit best have for and : 1/2, 1/3, 2/5, 3/8, 5/13, and so on. Those denominators, 5, 8, 13, 21, 34, 55, are the numbers of spiral arms that stand out in the picture, and the laboratory lists the ones that fit the number of seeds on the page.

Hurwitz proved in 1891 that this is as bad as a good fit can get. For every there are infinitely many with , and the constant cannot be improved: the is the number it fails for. In that sense the golden ratio gives the sharp constant in Hurwitz’s . For the exact the later bars approach the dashed line at . The rounded used here preserves that pattern at the small shown in the figure.

04

Formal statement

Directions, convergents and the bound

Write the as a of a turn in lowest terms. Seed points turns round, and only the fractional part matters, so seed points in the direction .

Directions. The first seeds point in exactly different directions.

Write the of as with convergents , where . Whenever there is a next ,

For a the upper bound is attained when the next equals the angle. For a one-third turn, the error of is exactly . Each convergent is closer to than any with a smaller .

Hurwitz. For every , for infinitely many , and cannot be replaced by a larger constant. For the every .

05

Proof

Why the directions repeat, and why large quotients make spokes

Seeds and point the same way exactly when is a whole number, that is when divides . Because and have no common , that happens exactly when divides . So the directions repeat with and no sooner, and seeds point in directions. At 137.5°, , which gives 144 directions for 2,000 seeds.

For the second claim, look at the upper bound in the formal statement. The error of the is at most . Since , a large makes large and the error tiny. Then turns of the fall within times that error of a whole number of turns: seeds that are apart in number sit in almost the same direction, and the seeds line up along spokes before the drift opens them into spirals. For the exact , the after the initial 2 are all 1. The then grow by the Fibonacci , so there is no large coefficient to make a small-denominator fit unusually well.

The bounds above and Hurwitz's are cited, not proved here. The kernel's tests check the convergents against a brute-force search for the best approximation, and compare the number of directions with for hundreds of random .

06

Limits and further questions

A model of a sunflower, and not a claim about every sunflower

Every on this page is a whole number of millionths of a degree, so it is a of a turn and its ends. Mathomaly rounds to 137.507764°. That rounding is invisible for the seed counts offered, and the fractions-that-fit view stops at of 5,000 for that reason.

The page measures what its own seeds do: how many directions they point in, and how far apart in number the nearest neighbours of a seed are. At those gaps are in the runs checked, 300 and 1,000 seeds. At other the gaps need not be Fibonacci numbers. At 137.0° with 800 seeds the commonest gap is 21, the of that angle's own 8/21, and no angle has been checked beyond the cases the page lists.

Nothing here says that real flowers follow the model. Swinton and colleagues counted spirals on many real sunflower heads in 2016 and reported non-Fibonacci structure as well as Fibonacci counts, so the counts on a real head are a measurement and not a law. The model explains why a fixed near 137.5° gives even packing and Fibonacci-type counts. It does not explain why a plant would use it.

What is actually established

Every statement on this page, with its status, its exact scope, and the date that status was last checked.

Proved

If the angle is the fraction a/b of a turn in lowest terms, the first N seeds point in exactly min(N, b) different directions. At 137.5° = 55/144 of a turn, 2,000 seeds point in 144 directions.

Scope
An angle that is a rational number of turns, which every angle on the page is, since angles are held to a millionth of a degree. Seeds are counted by direction only, whatever their distance from the centre.
Why
Seed n points n·a/b turns round, which matters only modulo 1, so only the remainder of n·a on division by b matters. Seeds n and m then point the same way exactly when b divides (n − m)·a, and since a and b share no factor that happens exactly when b divides n − m. So the directions repeat with period b and no sooner. The kernel counts directions with exact integer arithmetic and its tests compare the count with min(N, b) over randomly chosen angles.
Status checked
Proved

The convergents p/q of the continued fraction of the angle, as a fraction of a turn, are its best approximations: no fraction with a smaller denominator is closer than p/q.

Scope
A standard theorem of continued fractions (Lagrange), stated in any text on the subject and not proved on the page. The kernel computes the convergents by Euclid’s algorithm in exact integers and its tests check the property by brute force for randomly chosen angles with denominators up to 5,000.
Why
The kernel’s brute-force test compares every smaller denominator with each convergent for sixty random angles. That is a check on the code and not a proof of the theorem.
Status checked
Proved

For every irrational α there are infinitely many fractions p/q with q²·|α − p/q| < 1/√5, and 1/√5 cannot be replaced by any smaller number. The golden ratio gives this sharp constant. Its continued fraction has only 1s.

Scope
Hurwitz’s theorem, proved in the cited paper and not on this page. The page does not prove it: it measures q²·|α − p/q| for the convergents of the angle chosen, and every angle on the page is rational, so its continued fraction is finite.
Why
The measured values at the golden angle are within 0.006 of 1/√5 for every convergent with denominator from 13 to 1,597, as the unit tests check. Further convergents of the rounded angle are not drawn, because the rounding to a millionth of a degree separates it from the true golden angle beyond denominators of about 5,000.
Status checked
Exhaustively checked

For the golden angle, the nearest neighbour of every seed has a number that differs from the seed’s own by a Fibonacci number, for 300 seeds and for 1,000 seeds.

Scope
The golden angle rounded to a millionth of a degree, with exactly 300 seeds and exactly 1,000 seeds. This is not claimed for other counts or other angles, where the gaps need not be Fibonacci numbers.
Why
Distances are floating-point; ties in distance are broken towards the lower number. The check shows the Fibonacci gaps in these runs and proves nothing for other counts.
Computation (approximate)
The tally covers every seed away from the centre, for 300 and 1,000 seeds at 137.507764°. Seed 1 is nearest to the centre because radius increases with the seed number. An independent distance sort agrees with the tallies for 150 seeds at four angles. Algorithm sunflower-1.
Status checked
Observed in this run

Real sunflower heads do not always show Fibonacci spiral counts: a citizen-science survey of many heads found non-Fibonacci structure as well.

Scope
Reported by Swinton et al. 2016 and cited without independent checking. The page draws a mathematical model and says nothing more about real flowers.
Why
The model puts a fixed angle between seeds. A real head grows from a changing, living process, and the page does not attempt to model it.
Status checked

Sources

Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.

I’ve checked each citation below against the publication itself, unless it says otherwise. That checks the reference, not the proof.

  1. Helmut Vogel, A better way to construct the sunflower head, Mathematical Biosciences 44(3-4), 1979. Link

    The model places seed n at distance c√n and turns by the same angle for each new seed. The golden angle gives a dispersed arrangement in this model. Every figure and count in the lab is computed here.

    Bibliographic review:

    AI-assisted bibliographic audit. Evidence type: publisher record.

    The Crossref record for the DOI gives the title, the author Helmut Vogel, Mathematical Biosciences volume 44 issues 3-4, pages 179-189, 1979. The paper’s text was not inspected.

  2. Adolf Hurwitz, Ueber die angenäherte Darstellung der Irrationalzahlen durch rationale Brüche, Mathematische Annalen 39(2), 1891. Link

    Hurwitz’s theorem: for every irrational α there are infinitely many fractions p/q with |α − p/q| < 1/(√5·q²), and the constant √5 cannot be improved, the golden ratio being the extreme case. Cited, not proved on the page; the page only measures the quantity q²·|α − p/q| for the convergents it lists.

    Bibliographic review:

    AI-assisted bibliographic audit. Evidence type: publisher record.

    The Crossref record for the DOI gives the title, the author A. Hurwitz, Mathematische Annalen volume 39 issue 2, pages 279-284, 1891. That the theorem is stated there with the constant √5, and the golden ratio as the extreme case, rests on the standard attribution and was not checked against the paper’s text.

  3. Jonathan Swinton, Erinma Ochu, The MSI Turing’s Sunflower Consortium, Novel Fibonacci and non-Fibonacci structure in the sunflower: results of a citizen science experiment, Royal Society Open Science 3(5), 160091, 2016. Link

    A survey of real sunflower heads documented spiral counts outside the Fibonacci sequence, including heads with no clear spiral count.

    Bibliographic review:

    AI-assisted source review. Evidence type: source text.

    The university archive hosts the published version. Its abstract and results report non-Fibonacci and ambiguous spiral counts in the surveyed seedheads.

(connected by how they work)