Two wheels二つの輪
In Japanese, a division that doesn’t come out even is 割り切れない: 10 ÷ 3 is 割り切れない, it “can’t be cut clean.” The same word describes a feeling that won’t resolve, something you can’t quite come to terms with: 割り切れない気持ち. This essay is about the first meaning. Mostly.
Picture two wheels on one axle. The small one is the day: it turns once from one midnight to the next. The big one is the year of the seasons: it turns once from one spring to the next. If a year were exactly 365 days, the two wheels would come back into line every time the big one finished a turn, and nobody would ever have needed a leap year. But a year, averaged over the seasons, is about 365 days, 5 hours and 49 minutes. Every time the year wheel comes round, the day wheel has turned a little extra.
The figure turns that extra into a dial. The dial is a 24-hour clock face, and each mark is the moment a year ends, one year after another. Each year ends about 5 hours 49 minutes later on the clock than the year before. Press play and watch where the marks fall.
The marks never land on the same spot twice. But every so often one lands closer to the start than any before it. After 4 years the mark is back within 45 minutes of where it began. After 29 years, within 34 minutes. After 33 years, within about 11 minutes. After 128 years, within half a minute. Each of those near returns is a calendar waiting to be written down. If four years come back within 45 minutes, add a day every four years: that is the Julian calendar. Eight days in every 33 years is the cycle that keeps step with the Persian calendar. Thirty-one days in every 128 years was proposed for Russia in 1864. You don’t need anyone to tell you these rules. You can read them off the dial by watching it.
Switch the dial to the moon and the record returns come at 1, 2, 3, 8, 11 and 19 years: the lunar calendars. Switch it to the fifth, the musical interval, and they come at 5, 12, 41 and 53: the sizes of musical scales. Then try 2/3. A rate that is a fraction closes up after a few steps, and after that nothing new ever happens. A fraction is 割り切れる. Everything else in this essay is 割り切れない.
The numbers that win the records aren’t random, and you don’t have to wait for them. They come out of one calculation that is more than two thousand years old.
Cutting squares連分数
Take a rectangle whose sides are in the ratio you care about, say 365.2422 to 1. Cut off as many squares as fit. That makes 365 squares, plus a thin leftover strip 0.2422 wide. Turn the strip on its side and cut as many squares as fit across it: 4 squares, each 0.2422 wide, use up 0.9688 of its length and leave a sliver 0.0312 wide. Turn that sliver and cut again: 7 squares. Then 1. Then 3. And so on.
Those counts, 365, 4, 7, 1, 3 and so on, are the year’s continued fraction, written [365; 4, 7, 1, 3, …]. Stop at any point and pretend the leftover is nothing, and you get a fraction. Stop after the 4 and you get 365¼, the Julian year. Stop after the 7 and you get 365 7⁄29; after the 1, 365 8⁄33; after the 3, 365 31⁄128. These stopping points are called convergents, and they are exactly the record near returns from the dial. That isn’t a coincidence; it’s a theorem. Every record on the dial lands on a convergent, and no fraction with a smaller denominator comes closer.
When the ratio is a fraction, the cutting ends. A 3 × 2 rectangle gives one 2 × 2 square, then two 1 × 1 squares, and nothing is left. That is Euclid’s algorithm for the greatest common divisor. The Greeks knew the other half too: Book X of Euclid’s Elements uses the same back-and-forth subtraction to test whether two lengths share a common measure. If the cutting never stops, Euclid says (Book X, Proposition 2), they don’t. So the exact machine for this essay’s question is about 2,300 years old.
Two of the presets are worth watching for longer. The golden ratio, 1.618…, cuts exactly one square at every stage, forever. Its continued fraction is [1; 1, 1, 1, …], so no stage ever stands out: there is never a big term, and so no stopping point that is especially good. Its convergents are ratios of Fibonacci numbers (2/1, 3/2, 5/3, 8/5, 13/8 …), and it comes back in chapter 花. π starts [3; 7, 15, 1, 292, …]: that 292 means the leftover after the fourth stage is tiny, so stopping just before it gives a superb approximation, 355/113, good to seven digits. A big term in a continued fraction always means that the convergent just before it is unusually good for its size. Keep an eye out for big terms. They are where calendars and scales like to stop.
Which year? For a measured quantity, only the first few terms mean anything. The year’s 4, 7 and 1 hold however you define it, but after that it depends on which year you mean. Averaged over all the seasons, the year is [365; 4, 7, 1, 3, 27, …], which points at 128. Measured from one March equinox to the next it is [365; 4, 7, 1, 17, …], and that 17 makes 8/33 unusually good for that particular year, which is part of why the calendar tied to the March equinox, Iran’s, keeps step with a 33-year cycle. Meanwhile the Earth’s spin is slowing, so the days you count with are slowly getting longer. Past the fourth term you’re reading definitions, not the sky.
The year閏年
The simplest answer to a year of 365.2422 days is to ignore the 0.2422. The Egyptian civil calendar did: twelve months of 30 days plus five extra days, 365 in all, every year. Its New Year slid a day earlier against the seasons every four years, and wandered through every season in about 1,500 years. In 238 BC a decree of Ptolemy III ordered a sixth extra day every fourth year. It didn’t stick, and the fix waited two more centuries for Augustus.
Julius Caesar’s calendar (46 BC) took the first convergent: 365¼ days, a leap day every fourth year. That is about 11 minutes too long a year, which is nothing until it’s a day every 128 years. By the sixteenth century the March equinox, which the church needed for dating Easter, was arriving on March 11, ten days before the date its Easter tables assumed. In 1582 Pope Gregory XIII’s reform removed the ten days at once (Thursday 4 October was followed by Friday 15 October) and changed the rule: century years are leap years only when they divide by 400. That makes 97 leap days in 400 years, 365.2425 days on average.
Notice what 97/400 is not: it isn’t a convergent. The 33-year cycle (8 leap days in 33 years) is more accurate. Against the year that both calendars care about, from one March equinox to the next (365.2424 days, a little longer than the average year), the Gregorian rule drifts a day in about 7,900 years and the 33-year rule a day in about 20,000. Iran’s calendar goes one better and skips the arithmetic altogether: since 1925 its New Year has simply been the day of the March equinox if the equinox comes before noon, Iran time, and the next day if it comes after, and the 33-year rule is just a good way to predict that for the next couple of centuries. What the Gregorian rule has is round numbers. You can state it in centuries, and no one ever needs to know which year of a 33-year cycle they’re in. It isn’t the best approximation. It’s the best one that fits in a sentence.
Not everyone switched at once. Britain and its colonies waited until 1752 (by then 11 days behind), Japan switched in 1873, Russia in 1918 and Greece in 1923. Orthodox churches still date Easter by the Julian calendar, which is now 13 days behind.
Which years?
Once you’ve settled on 8 leap days in 33 years, you still have to choose which years. The Persian calendar spaces them four years apart seven times, then five years once. That is the most even spacing possible, and there is a neat way to find it: draw a straight line with slope 8/33 on graph paper and, in each column, fill in the square nearest the line. A calendar that adds days at an even rate is a straight line drawn in whole squares.
That is exactly the problem of drawing a sloping line on a screen made of pixels, and the standard solution has a name: Bresenham’s line algorithm, worked out at IBM in the early 1960s to drive a pen plotter. The Hebrew calendar’s leap years (years 3, 6, 8, 11, 14, 17 and 19 of every 19, which get a 13th month) are the same kind of line, at slope 7/19.
Then try the musical presets. Spread 7 notes as evenly as you can over the 12 semitones of an octave and you get the white keys of a piano. Rotate the pattern and you step through the modes in order of brightness, from Lydian to Locrian, with the major scale among them. Spread 5 and you get the black keys, the pentatonic scale. Spread 3 beats over 8 pulses and you get the tresillo, the rhythm of the habanera; 5 over 8 gives the Cuban cinquillo; 7 over 12 gives a West African bell pattern whose gaps are the major scale’s, played in time instead of pitch. In 2005 Godfried Toussaint noticed that an algorithm written to space out timing pulses evenly in a particle accelerator generates traditional rhythms from all over the world. A leap-year rule, a scale and a rhythm turn out to be the same object, a straight line drawn on squared paper.
The newest leap rule is the oldest. Since 1967 the second has been defined by atoms, and the Earth’s spin doesn’t keep exact time with them. Between 1972 and 2016, 27 leap seconds were added to keep clocks in step with the sky. In 2022 the world’s metrologists voted to let clocks and sky drift much further apart, starting by 2035, which in practice means no more leap seconds for a century or so: the Egyptian solution, some five thousand years later.
The moon閏月と旧暦
From one new moon to the next is 29.53 days. Twelve of those make 354.37 days, about 11 days short of a year. A purely lunar calendar, like the Islamic one, accepts that: each year starts 11 days earlier against the seasons, so Ramadan moves through summer and winter and comes back after about 33½ of its years.
Most calendars wanted both: months that follow the moon and years that follow the sun. That means adding a 13th month now and then. A year is 12.3683 months, and its continued fraction is [12; 2, 1, 2, 1, 1, 17, …]. The convergents are the lunisolar cycles:
| Cycle | Leap months | Who used it |
|---|---|---|
| 8 years = 99 months | 3 | the Greek octaeteris |
| 19 years = 235 months | 7 | Babylon (regular from about 499 BC), Meton of Athens (432 BC), the Hebrew calendar, China’s early calendars, which called it a 章 |
| 334 years = 4131 months | 123 | the next convergent; too long to be practical |
Look at the 17 in the continued fraction. It comes right after the 19-year convergent, and a big term means the convergent before it is unusually good. The 19-year cycle drifts by only about a day every 219 years, which is why it was found more than once and kept for so long. The 8-year cycle, before it, drifts a day and a half every 8 years. When Chinese astronomers finally left the 19-year cycle, they didn’t take the next convergent but cycles fitted to their own measurements: 221 leap months in 600 years for the Northern Liang in 412, and 144 in 391 for Zu Chongzhi’s calendar of 462. (By modern values, both are a little less accurate than the 334-year cycle.)
A calendar that follows the sky
China, and Korea, Vietnam and Japan after it, eventually stopped using a fixed cycle. Their calendars follow the actual sun and moon. Each month starts on the day of the new moon. The sun’s path through the year is cut into 24 equal parts of 15° each, the 二十四節気, and every other one is a 中気, a principal term. Each month is named after the 中気 that falls inside it. The 中気 come about 30.44 days apart on average, slightly more than a month, so every two or three years a month happens to contain no 中気 at all. That month becomes the leap month, named after the one before it: 閏六月, the leap sixth month. Nobody schedules it. It falls wherever the mismatch happens to land.
Japan’s last such calendar was the 天保暦, in use from 1844. It ended abruptly. On 9 December 1872 the government announced that the third day of the twelfth month of Meiji 5, 23 days away, would become 1 January 1873, so that year’s twelfth month lasted two days. Ōkuma Shigenobu, one of the government’s leaders, later explained the hurry as money. Officials had just been put on monthly salaries, and Meiji 6 was due to have a leap month (閏六月): thirteen salaries in one year. Switching skipped it, and all but two days of the twelfth month of Meiji 5 as well.
The old rules didn’t die. Japanese calendars still print the 旧暦 date and the 六曜 computed from it: 大安, a good day for a wedding, 仏滅, a bad one. They are computed today with modern astronomy but the Tenpō rules, and the rules have a flaw that nobody hit for almost 190 years.
The Tenpō rules give four 中気 priority: the month containing the winter solstice (冬至) must be the eleventh month, and the spring equinox, summer solstice and autumn equinox must fall in the second, fifth and eighth. And because the calendar uses the sun’s true position, the 中気 aren’t evenly spaced. Around January, when the Earth is closest to the sun and moving fastest, they come only 29.4 days apart, less than a month, so a winter month can hold two of them.
In the winter of 2033 that happens twice. The month containing the autumn equinox must be the eighth; the one containing the winter solstice must be the eleventh; and only one month lies between them, so the ninth and tenth months can’t both exist. Meanwhile three months have no 中気 at all, and each is a candidate for the leap month. Choose 閏七月 and the winter solstice leaves the eleventh month. Choose 閏十一月 or a leap first month in 2034, and the autumn equinox falls in the ninth. The rules have no answer. It is the first time since 1844.
There is no official ruling either: Japan’s official almanacs stopped printing the old calendar in 1910. In 2015 the Japan Calendar and Almanac Culture Association (日本カレンダー暦文化振興協会) recommended 閏十一月, keeping the winter solstice, the calendar’s oldest anchor. China’s calendar, which uses a simpler rule, puts its leap month in the same place. So even a calendar that follows the sky exactly, day by day, can find that the sky doesn’t divide evenly into its rules.
The fifth三分損益
Pluck a string, then pluck exactly half of it: the note is an octave higher, frequency ratio 2:1. Pluck two-thirds of it and you get a perfect fifth, 3:2, the most consonant interval after the octave. From those two ratios you can build a scale. Go up a fifth, then another, and another: C, G, D, A, E, B, F♯, C♯, G♯, D♯, A♯, E♯ (which a piano calls F), and after twelve fifths B♯, which a piano calls C. You are back where you started, seven octaves higher. Bring all twelve notes down into a single octave and you have a twelve-note scale.
Almost. The names already admit it: B♯ isn’t really C. Twelve fifths are (3/2)¹² = 129.75, and seven octaves are 2⁷ = 128. The circle overshoots by about a quarter of a semitone (23.46 cents, where a cent is a hundredth of a semitone). That gap is the Pythagorean comma. It is this essay’s problem again: in octaves, a fifth is 0.58496…, and its continued fraction [0; 1, 1, 2, 2, 3, 1, 5, …] gives convergents with denominators 2, 5, 12, 41, 53, 306. Those are the scale sizes where a stack of fifths nearly closes.
The same stack was built in China, independently. The 三分損益法, “take away or add a third,” works on the length of a pipe or string. Cut a third off (損) and it sounds a fifth higher; add a third (益) and it sounds a fourth lower. Alternate the two and you walk the circle of fifths while staying inside one octave. The Guanzi uses it for a five-note scale, probably in the fourth or third century BC, and the Lüshi Chunqiu (about 239 BC) carries it through all twelve pitches, the ones Japan later named the 十二律, from 壱越 (about D) upward.
Chinese theorists met the comma too. A thirteenth step doesn’t come back to the first pipe: the new pipe comes out slightly too short, a comma sharp. In the first century BC 京房 (Jing Fang) gave that thirteenth pitch its own name, 執始, and kept going until he had sixty. In his table, the pitch 53 fifths up lands 3.6 cents from the start: the comma later named after Nicholas Mercator (the mathematician, not the mapmaker), seventeen centuries before him, though nothing in the surviving text says Jing Fang noticed. About five centuries later 銭楽之 (Qian Lezhi) pushed the chain to 360.
Where to hide the difference
Twelve pure fifths don’t close, so something has to give, and there are two ways to give. One is to tune eleven fifths pure and let the twelfth absorb the whole comma. That last fifth comes out 23.46 cents flat, and it howls. Musicians called it the wolf. It is the leap day: all the error dumped in one place, rarely visited. The other way is to make every fifth a little narrow, by 1.955 cents each, so that twelve of them close exactly. That is equal temperament, the tuning of almost every piano today. It spreads the error evenly, so that every key is equally slightly wrong. Zhu Zaiyu worked it out exactly in China in 1584, computing the twelfth root of two to 25 digits, and Simon Stevin did the same in the Netherlands around 1600. But keyboards took a long time to follow. In Bach’s day most were tuned to one of the unequal “well” temperaments, which shared the comma out unevenly: the common keys got sweeter thirds and the remote keys rougher ones, but every key was usable. Pianos only settled on equal temperament during the nineteenth century.
Calendars can’t spread their error the way equal temperament does. A fifth can be slightly narrow and still sound fine, because pitch is continuous. A day can’t be slightly longer than a day, because you live one sunrise at a time. So music has mostly moved its error out of sight, and calendars still keep theirs in lumps.
Twelve is a compromise. It has an excellent fifth and a mediocre major third: the pure 5:4 third is 386 cents and the equal-tempered one is 400. Other divisions trade differently. Nineteen and 31 have much better thirds, and Adriaan Fokker’s 31-tone organ, built in 1950, still plays in Amsterdam. 53 has an excellent fifth and good thirds at once. William Holder proposed it in England in 1694, from a manuscript of Nicholas Mercator’s, and Turkish music theory still measures its intervals in commas, 53 to the octave.
The flower黄金角
Everything so far wanted a ratio that nearly fits, so that a short cycle comes back close to where it started. A growing plant wants the opposite.
At the tip of a sunflower’s stem, new seeds (and in other plants, new leaves or scales) form one at a time, each turned by a fixed angle from the one before. If that angle were a simple fraction of a turn, say 2/5, every fifth seed would land in the same direction: five straight spokes with empty wedges between them, wasted space. If it were nearly a simple fraction, the spokes would bend a little but the wedges would stay. The best angle is the one that is worst at being a fraction, so that every near return is as poor as possible and each new seed falls into the biggest gap left.
That number exists, and it’s the golden ratio. Its continued fraction is all 1s, the slowest any continued fraction can converge, so it is the hardest number of all to approximate by fractions. This has a precise form: Hurwitz’s theorem (1891) says every irrational number has infinitely many approximations p/q within 1/(√5 q²), and that √5 can’t be improved, because of the golden ratio. (It shares the prize with its relatives, the “noble” numbers, whose continued fractions end in an endless run of 1s. The golden ratio is the simplest of them.) As an angle it is 0.381966… of a turn, 137.5°. That is the angle in the figure, and in a real sunflower.
The spiral arms you see do come in countable families, and the counts are Fibonacci numbers: 13 and 21, 21 and 34, 34 and 55, which are the convergent denominators of the golden ratio. Now press the other presets. The year’s seed head grows 4 arms, then 33, then 128: its leap rules. The fifth makes arms of 12 and of 53, its scales. The moon makes 19s. Every number in this essay draws its own sunflower, and the sunflower shows its convergents.
The plant doesn’t need to know any of this. In 1992 Stéphane Douady and Yves Couder dripped drops of magnetic fluid one at a time into the centre of a dish of oil, where the drops repelled each other and were pushed outward. Dripped slowly, each new drop simply landed opposite the last one, at 180°, like the leaves of grasses. Dripped faster, each drop settled into the biggest gap the earlier ones had left, and the angle between successive drops went to 137.5° on its own. Nature finds the most irrational number by always putting the next thing where there’s most room. (Not every sunflower manages it. When volunteers grew and counted 657 sunflowers for a 2016 study, about a quarter of the spiral counts weren’t Fibonacci numbers, and nearly a fifth had no Fibonacci pattern of any kind. The commonest near miss was one short.)
This is the one place in the essay where 割り切れない is the goal.
The sky金星の五芒星
The sky is full of near returns, and astronomers have been collecting them for as long as there have been astronomers.
Venus goes round the sun 13 times in almost exactly the time Earth goes round 8 times. Seen from Earth, Venus swings out to one side of the sun and then the other, passing between us and the sun every 584 days or so, and five of those passages take 8 years minus about 2.4 days. So the places in the sky where Venus passes the sun repeat every 8 years, and the five of them sit at the points of a pentagram. The Maya tracked exactly this: the Venus table in the Dresden Codex counts five Venus cycles of 584 days, 2,920 days, as eight years of 365, with corrections for the true 583.92.
8 and 13 are Fibonacci numbers, which is down to arithmetic, not cosmic design. Earth’s year divided by Venus’s is [1; 1, 1, 1, 2, 29, …]: by chance it starts out exactly like the golden ratio, and then a 29 arrives and makes 13/8 unusually good. The next convergents are 382/235 and 395/243. The second is why transits of Venus, the rare days when it crosses the face of the sun, come in pairs 8 years apart, with the pairs 105½ and 121½ years apart, the whole pattern repeating every 243 years. The last pair was 2004 and 2012. The next is 2117 and 2125.
Eclipses need three cycles to agree, and they nearly do. 223 months from new moon to new moon, 242 cycles of the moon crossing the sun’s path, and 239 cycles of the moon’s distance all come to about 6,585⅓ days, 18 years and 11 days (give or take a leap day). This is the saros: an eclipse is followed by a nearly identical one a saros later. The leftover third of a day turns the Earth a third of a turn further, so each repeat happens about 120° of longitude further west, and three saros bring it back. The Antikythera mechanism, the Greek geared calculator of the second century BC found in a shipwreck in 1901, has a spiral dial of 223 cells for the saros and one of 235 cells for the 19-year Metonic cycle. The oldest known analogue computer was built to keep track of things that don’t divide evenly.
The cycles in this essay that close perfectly are all human ones. East Asia counts years in pairs of a ten-cycle and a twelve-cycle, the 干支: 10 and 12 come back into step every 60 years, which is why completing your sixtieth year, 還暦, is a “return of the calendar.” The only wheels that line up are the ones we built ourselves.
Elsewhereどこかの暦
The last two times I had a night to myself, I made imaginary towns (どこかの町) and then the imaginary languages their names come from (どこかの言葉). This is the sky over them. The figure below makes a world from a seed: how long its year is in its own days, its moon or moons, the words its peoples use for them (from the same language generator), the calendars those peoples would arrive at, and the music they would make.
Two parts of this essay change from world to world, and one doesn’t. The sky is an accident: a different world has a different day, year and month, so it has different continued fractions and different leap rules. A people with forty years of records would settle on a rougher rule than one with three thousand. But if they make music on strings, pipes or voices, they would meet the fifth, and with it 5, 12 and 53. What makes 3:2 special is physics. A plucked string vibrates at a base frequency and at 2, 3, 4… times it, all at once. Two notes a fifth apart share many of those overtones exactly, and the rest stay well apart, so the pair blends smoothly instead of beating. Whether people like that blend is partly culture, but anyone who plays strings will run into it.
Unless their instruments ring differently. A bell or a metal bar has overtones that aren’t whole-number multiples, and then the intervals that sound smooth move somewhere else. In 1993 the engineer and musician William Sethares showed how to predict them from the overtones alone: add up how rough every pair of overtones sounds together, and the smooth intervals are the dips in the total. Some of the worlds above have bells instead of strings. Their “octave” is stretched, their “fifth” isn’t 3:2, and their scales have sizes that ours don’t. Sethares has argued that this is part of why Javanese gamelan, whose metal bars and gongs have exactly this kind of overtones, uses scales (slendro and pelog) that can’t be built from fifths. It’s a hypothesis that fits the measurements, not settled history, but it is the best-known place on Earth to hear what the bell worlds might sound like.
The clockmaker’s treeシュテルン・ブロコット木
Clockmakers have this essay’s problem in brass. A clock that shows the phases of the moon has to turn its moon dial once for every 29.53 turns of its day wheel, and gears only come with whole numbers of teeth. So which whole numbers? In 1861 a Paris clockmaker named Achille Brocot published a method for choosing the teeth for any ratio you need, and the method was a tree that contains every fraction exactly once. The German mathematician Moritz Stern had found the same tree three years earlier, for its own sake. It is called the Stern–Brocot tree.
Start with 0/1 and 1/0. Between any two neighbours, put their mediant: add the tops, add the bottoms. Between 0/1 and 1/0 comes 1/1; between 0/1 and 1/1 comes 1/2; between 1/2 and 1/1 comes 2/3; and so on, forever. Every positive fraction turns up exactly once, already in lowest terms. To find a number, start at the top and go left when your number is smaller, right when it’s bigger. The lengths of the runs of lefts and rights are its continued fraction, and the last node of each run is a convergent.
So the essay ends where it started, with two wheels on one axle. Every figure above lives somewhere on this tree. The Julian calendar is a node, and so are the Metonic cycle, the twelve-note scale and the pentagram of Venus. A fraction’s path stops at its node. The golden ratio’s path never stops: left, right, left, right, never committing, deeper than any gear could follow.
I said at the start that this was mostly about the first meaning of 割り切れない. Here is the part about the second. What I like about all of this is that nobody ever solved the problem. The year still isn’t a whole number of days, and it never will be. What people did instead was decide, with a great deal of care and ingenuity, where to put the difference: in a leap day, in a thirteenth month that falls where the sky says, in a howling fifth that nobody plays, spread thin across every key of a piano, or, in a sunflower, put to use. Every calendar and every scale is a record of what someone decided to do with a remainder that wouldn’t go away.
That isn’t a bad way to handle the other kind of 割り切れない, either.