Teeth

A clock is a factorisation

A going train's job is a ratio and its parts are tooth counts, so whether a clock can be built is whether a number factorises inside the counts a wheel-cutting engine will cut. Sixty has 404 answers in two pairs and none at all in one. The ratio between a sidereal day and a mean one has none in any number of pairs, and the best two-pair train is out by a sixth of a second a day.

Assumes A ratio that is a count and Epicyclic ratios, two ways.

An escapement lets a train advance by a fixed amount and stops it again. What that is for is a count: a wheel further down the train has turned by an amount proportional to the number of beats, and if the beats are regular the wheel is a clock.

Which makes the design of the train an arithmetic problem rather than a mechanical one, and an unusually pure sort of arithmetic problem, because gear ratios are ratios of whole numbers and nothing else.

404 ways to gear 60 to 1. Each dot is a pair of wheels and a pair of pinions whose ratios multiply to exactly 60, with wheels of 40 to 120 teeth and pinions of 6 to 16 leaves. The line is the hyperbola every exact answer must lie on; the dots are the ones that lie on it at whole numbers of teeth, and there are 404 of them. In a single pair there are 0 — a ratio of sixty needs a wheel of 360 teeth against a pinion of six, and nobody cuts that. Exactness is decided in integers here and never by comparing floating-point ratios, which is the one way a search like this quietly returns answers that are merely close.
Fig. 1 Every pair of wheels and pinions whose ratios multiply to exactly sixty, with wheels of 40 to 120 teeth and pinions of 6 to 16 leaves. The line is the hyperbola every exact answer must lie on; the dots are the ones that lie on it at whole numbers of teeth, and there are 404 of them.

The going train’s number

A seconds pendulum beats once a second. A thirty-tooth escape wheel advances half a tooth per beat, so it turns once a minute — sixty beats to the revolution — and the centre wheel that carries the minute hand turns once an hour.

So the train between them must multiply by exactly sixty, and the question is whether sixty can be made out of wheels and pinions a wheel-cutting engine will cut.

In one pair it cannot. A single wheel and pinion give W/PW/P, and with a pinion of at least six leaves a ratio of sixty needs a wheel of at least 360 teeth, which is a wheel nobody makes for a clock. The count of exact one-pair trains inside the plausible range is zero.

In two pairs it is easy: 404 exact solutions, with wheels between 40 and 120 and pinions between 6 and 16. In three pairs there are 2,067. The mechanism’s designer is not solving a problem, they are choosing from a list.

Exactness has to be decided in integers

There is a way to write this search that returns answers which are merely close, and it is the obvious way.

Compute W1W2/(P1P2)W_1 W_2 / (P_1 P_2) in floating point and compare it against 60 with a tolerance. That admits 59.99999999999999659.999999999999996, and there are ratios in the search space that land there — not because they are wrong but because binary floating point cannot represent every rational. Widen the tolerance to be safe and inexact trains start arriving; narrow it and exact ones start being rejected.

The search here does not compare ratios at all. It asks whether

W1W21=P1P260W_1 W_2 \cdot 1 = P_1 P_2 \cdot 60

in integers, which is a question with no tolerance in it and no rounding. Every train the search returns satisfies that identity, and the assertion behind it re-derives the products and checks them one by one rather than trusting the search.

That is a small discipline and it is the same one this site applies to a gear train’s ratio: a ratio built from tooth counts is a rational number known exactly, and the moment it is evaluated as a decimal the exactness has been thrown away for no gain.

The other kind of problem

Now a ratio that does not factorise, and the difference is total.

A star returns to the same place in the sky in 23 hours 56 minutes 4 seconds — a sidereal day — because the Earth has gone once round its axis and a three hundred and sixty-fifth of the way round the Sun. A clock that shows sidereal time has to run fast by the ratio

366.2422365.2422=1.0027379\frac{366.2422}{365.2422} = 1.0027379

and the whole of the mechanism is a pair of gears somewhere in the train.

Search every pair of wheels between 40 and 150 teeth — 12,321 candidates — and the closest is one to one. Not a near miss: no gearing whatever is a better approximation to 1.0027379 than any single pair of cuttable wheels, because the nearest useful convergent is 366 to 365 and 366 teeth is not a wheel. The best single pair is out by 236 seconds a day, which is four minutes.

A ratio no train reaches. The ratio 1.0027379 against every train of 1 pair inside the counts a wheel-cutting engine will cut. 0 of the 12321 are exact, which is the whole difference between this problem and the last one: a ratio that factorises has hundreds of answers and a ratio that does not has none, however many wheels are thrown at it. The bars are the error in the only unit a clock is judged in. The best of them is out by 235.9 seconds a day, which is one whole day in 1.00 years.
Fig. 2 Every single pair, ranked. The first bar is 1 : 1, which is the arithmetic saying that the cheapest way to gear this ratio with one pair of wheels is not to gear it.

Go to two pairs and 1,413,721 candidates, and the exact count is still zero — the ratio in lowest terms needs 366 and 365 somewhere, and neither fits in one wheel. What two pairs buy is the ability to factorise those numbers instead: 366=6×61366 = 6 \times 61 and 365=5×73365 = 5 \times 73, so

4840×6173=29282920=366365\frac{48}{40} \times \frac{61}{73} = \frac{2928}{2920} = \frac{366}{365}

and the error against the true sidereal ratio is 0.157 seconds a day — one second in six days, one day in fifteen hundred years.

A ratio no train reaches. The ratio 1.0027379 against every train of 2 pairs inside the counts a wheel-cutting engine will cut. 0 of the 1413721 are exact, which is the whole difference between this problem and the last one: a ratio that factorises has hundreds of answers and a ratio that does not has none, however many wheels are thrown at it. The bars are the error in the only unit a clock is judged in. The best of them is out by 0.157 seconds a day, which is one whole day in 1511 years.
Fig. 3 The six best two-pair trains, in the only unit a clock is judged in. The first is 366/365 arrived at by factorising, and the gap between it and the second is a factor of two — the arithmetic is not a smooth landscape with a broad optimum, it is a lattice with one good point on it.

Why the two problems look the same and are not

Both are searches over tooth counts. Both return a list ranked by error. The difference is in the first column of the result.

For sixty, the exact count is 404 and the error of every one of them is zero. Choosing between them is a mechanical question — shaft positions, wheel diameters, how the depths come out — and arithmetic has stopped having an opinion.

For the sidereal ratio, the exact count is zero however many wheels are thrown at it, and every candidate has an error. Choosing between them is arithmetic and nothing else, and the answer is a best approximation rather than a solution.

The distinction is the same one this site has been drawing since Peaucellier and Watt: some problems have exact mechanical answers and some have only good ones, and knowing which kind a problem is before starting is most of the work. A straight-line linkage and a sidereal train are the same situation in different centuries.

The moon wheel, and the number everybody quotes

The most famous approximate train in horology is a single wheel and it is worth putting through the same search, because the error is quotable.

A lunar month is 29.530589 days. A clock’s moon dial is driven once a day, so the wheel needs 29.530589 teeth, and it is given 59 driven two teeth at a time — a ratio of 29.5.

The moon wheel, and what it costs. The ratio 29.5305890 against every train of 1 pair inside the counts a wheel-cutting engine will cut. 0 of the 726 are exact, which is the whole difference between this problem and the last one: a ratio that factorises has hundreds of answers and a ratio that does not has none, however many wheels are thrown at it. The bars are the error in the only unit a clock is judged in. The best of them is out by 89.5 seconds a day, which is one whole day in 2.64 years.
Fig. 4 The moon wheel, against every alternative in the same range. The 59-tooth wheel is out by 89.5 seconds a day, and everything else available is out by four times as much or more.

That error is 0.030589 days a month, which accumulates to one whole day in 2.64 years. The traditional statement is “a moon dial gains a day in about two and a half years”, and it is the same number arrived at by dividing rather than by observing.

What is interesting is that 59 is very nearly the best a single wheel can do, and the next candidates are much worse: 89 teeth in 3 gives 398 seconds a day and 88 in 3 gives −577. The lattice is coarse at that end, and 59/2 is the one good point on it — which is presumably why every moon dial in the world has 59 teeth.

Which numbers are easy

The count of exact trains is not a smooth function of the target, and its variation says something about which clocks are easy to build.

target ratio exact two-pair trains
60 404
64 204
59 141
61 68
67 68
71 68

Sixty is the easiest number in the range by a factor of two, and the reason is that it has twelve divisors. Every way of splitting 60 into two factors that both land inside the box gives a family of trains, and 60 splits as 2×302 \times 30, 3×203 \times 20, 4×154 \times 15, 5×125 \times 12, 6×106 \times 10 and their reverses. A prime like 61 splits only as 61×161 \times 1, so every train has to reach 61 in one stage and merely pass the ratio through in the other, and there are far fewer ways to do it.

This is the arithmetic showing up in the machine. A clock divided into sixty minutes and sixty seconds is easy to gear because sixty is a highly composite number, and a clock divided into sixty-one of anything would be markedly harder — not slightly harder, six times harder by this count. The Babylonian choice of sixty was made for reasons that had nothing to do with gear trains and it has been paying dividends to clockmakers for four hundred years.

Which box

The box matters as much as the number, and it is worth measuring rather than asserting.

pinion range exact two-pair trains for 60
4 to 16 leaves 520
6 to 16 leaves 404
8 to 12 leaves 101

Allowing four-leaved pinions adds a quarter as many solutions again. Restricting to the eight-to-twelve range a good clock actually uses cuts the list by three quarters. And narrowing the wheels from 40–120 to 40–90 leaves 165 of the 404.

Each of those restrictions is a mechanical judgement — a small pinion runs badly, a large wheel is expensive — and each of them changes an arithmetic answer. Which is the clearest statement available of what a wheel train is: an arithmetic problem whose feasible set is drawn by a machine shop.

Undercutting, either side of 17.10 teeth. Five gears, drawn whole and scaled to a common pitch circle so the tooth counts can be compared by counting them. The dedendum sits a fixed 1.25 modules below the pitch circle and the base circle sits at r·cos α, so as the tooth count falls the base circle rises relative to the root. Below N = 2/sin²α = 17.097 it rises above it, and the part of the flank between them lies where no involute exists — the cutter removes it. The familiar rule says seventeen; the exact figure is 17.10, so seventeen undercuts slightly and eighteen is the smallest count that does not. The teeth are not to a common scale, because at a common module the small gears would be unreadable.
Fig. 5 The lower bound on the box, and where it comes from. A pinion below about seventeen teeth is undercut at the standard pressure angle and below six is barely a gear at all; the arithmetic in this essay stops at six because the geometry in that one does.

Three pairs, and why they are not the answer to everything

Sixty in three pairs has 2,067 exact trains against 404 in two, so more stages always help — and for the sidereal ratio more stages do not help at all, which is the distinction this essay is about, seen once more.

A third pair multiplies the search space by about a thousand and multiplies the exact count by about five, because most of the new candidates are the old ones with a redundant 1 : 1 stage in them. For a ratio that factorises inside the box, the extra stage buys choice rather than possibility.

404 ways to gear 60 to 1. Each dot is a pair of wheels and a pair of pinions whose ratios multiply to exactly 60, with wheels of 40 to 120 teeth and pinions of 6 to 16 leaves. The line is the hyperbola every exact answer must lie on; the dots are the ones that lie on it at whole numbers of teeth, and there are 404 of them. In a single pair there are 0 — a ratio of sixty needs a wheel of 360 teeth against a pinion of six, and nobody cuts that. Exactness is decided in integers here and never by comparing floating-point ratios, which is the one way a search like this quietly returns answers that are merely close.
Fig. 6 The same target in three pairs rather than two. The lattice is about a thousand times larger and the exact solutions in it are about five times as many, because most of the new candidates carry a redundant 1 : 1 stage — choice, not possibility.

For a ratio that does not, the extra stage buys a better approximation and nothing else, and the improvement is real: one pair gets the sidereal ratio to 236 seconds a day, two pairs to 0.157. A third would do better again. But the exact count stays at zero however many stages are added, because 366/365 in lowest terms needs the factors of 366 and 365 to be distributed among the wheels, and once they have been — as they are in 48×61/(40×73)48 \times 61 / (40 \times 73) — the answer is not exact anyway, since the true ratio is 1.0027379 and 366/365 is 1.00273973.

Which is the last thing to notice about the sidereal problem: the best train is exact for the wrong number. It gears 366/365 perfectly, and 366/365 is itself an approximation to the ratio of the two days. The mechanism’s error is inherited from an arithmetic simplification made before any wheel was cut, and the 0.157 seconds a day is the residue of that rather than of anything mechanical.

What a search for an inexact ratio is really doing

The two problems are described above as different in kind, and the second one has a name and a shape worth giving it, because the shape says what an extra stage is worth before anybody runs the search.

A target that is a rational number with a factorisation inside the box has exact answers, and the count of them is a fact about the integer. A target that is not — the sidereal ratio, a lunar month, anything measured rather than defined — has no exact answer at any number of stages, and the search is therefore not looking for a solution at all. It is looking for the best rational approximation to a number, with the numerator and denominator each constrained to be a product of counts a wheel-cutting engine will cut.

That is a Diophantine problem rather than a factorisation, and it behaves in the way those do. The accuracy available is governed by how large the denominators may get, so each additional stage multiplies the reachable denominators by roughly the size of the box and buys about that factor in accuracy. Going from one pair to two took the candidate count from twelve thousand to one and a half million, and the best error fell correspondingly — not because the search looked harder but because the set of representable ratios got denser.

Which gives the figure of merit that a clockmaker actually needs, and it is not the error. It is the error against what another stage would buy. A two-pair train at 0.157 seconds a day is worth accepting if a third pair would take it to 0.14; it is not if a third pair would take it to 0.002. The first is a mechanism at the limit of the arithmetic and the second is a mechanism at the limit of somebody’s patience, and only the comparison distinguishes them.

It also explains why approximate trains in horology cluster on a small number of famous values. The best approximations to a given target with bounded parts are a short and rapidly improving sequence, so there is usually one obvious answer, one that is much worse, and nothing in between. The moon wheel’s 59 is that: not a compromise somebody settled on but very nearly the only candidate, with the next one out by more than twice as much. A tradition that quotes one number for such a train is not being lazy — there is one number.

And it sharpens what the box is doing. For an exact target the box decides whether there is an answer; for an inexact one it decides how good the answer is, continuously. So widening the range of cuttable pinions has completely different consequences in the two cases — in the first it turns a zero into a count, and in the second it improves an error by a factor. A workshop’s capability shows up as a discrete gain on one kind of problem and a continuous one on the other.

That division runs right back through the field. An exact ratio is a count and an inexact one is a measurement, and every consequence in this essay follows from which of those the clock is being asked for. A clock that divides a day is doing arithmetic; a clock that tracks a star is doing approximation, and no amount of gearing will make it do the first.

The count is exact and the beat is not

One boundary, because this essay’s arithmetic is exact and the clock it describes is not.

Everything above is a statement about counts: how many turns of one wheel correspond to how many of another. The counts are integers, the ratios are rationals, and the errors are exactly computable to as many digits as anybody wants. Nothing in it depends on how well the wheels are cut, and nothing on how heavy the weight is.

What decides whether the clock keeps time is the beat, and the beat is a period of oscillation, which is dynamics. A perfect train on a bad pendulum is a bad clock; a mediocre train on a good pendulum is a clock that is wrong by a known and constant amount, which is a very different sort of wrong and can be corrected by moving a bob.

That division is why the two halves of clockmaking were historically separate trades, and it is exactly this site’s boundary again. The train is geometry and arithmetic. The oscillator is not.

30 teeth and two palletsAn escape wheel of 30 teeth and a pair of pallets spanning 4 and a half tooth pitches. The heavier line at each pallet is the **locking face**, here an arc about the arbor; the lighter one is the **impulse face** the tooth slides along once it is let go. The wheel is drawn where the contact puts it, not where it looks well: at this pallet angle the tooth in play sits on the lock face and the wheel is -0.0320° from it. Dragging the pallet through its whole engagement moves the wheel by 0.106° of recoil. Of the 6.0° the wheel turns each beat, 65.9% is drop and does nothing.pallet arborpallet 2.00° · wheel -0.0240° · lockthe wheel is placed by the contact, not by the drawing
Fig. 7 And the join between them. The escape wheel is the last wheel of the train and the first part of the oscillator’s business — thirty teeth, half a pitch a beat, sixty beats a revolution, one revolution a minute. Every number in this essay hangs off that count.

What a wheel-cutting engine decides

One last observation, because it explains a pattern in old clocks that looks like superstition.

The search ranges above — wheels of 40 to 120 or 40 to 150, pinions of 6 to 16 — are not arbitrary. A pinion of fewer than six leaves undercuts badly and runs poorly; a wheel of more than about 120 is large and expensive and hard to divide accurately. Those two bounds are what turns the arithmetic from find any factorisation into find a factorisation inside a box, and the box is where the difficulty lives.

Widen the box and problems get easier: with pinions down to 4 leaves, ratios that had no exact train acquire one. Narrow it and they get harder. So a clockmaker’s stock of dividing plates — the physical plates with holes drilled at particular counts — decided which ratios were available to them, and two workshops with different plates had genuinely different sets of solvable problems.

That is a rare case of a manufacturing constraint reaching all the way into the arithmetic rather than merely into the tolerance, and it is why the tooth counts in old clocks repeat: not tradition, but the plates.

It also explains why the escapement sits where it does in the train. The escape wheel is at the fast end, turning once a minute against the centre wheel’s once an hour, and everything between is a multiplication by sixty. Putting the escapement anywhere else would change the number to be factorised — a clock whose escape wheel turned once every two minutes needs a ratio of thirty, which has fewer divisors than sixty and therefore fewer trains — so the choice of where in the train to escape is itself an arithmetic decision dressed as a mechanical one.

And it is the point at which this essay meets the field it came from. An escapement’s half-tooth-per-beat is a counting fact, established without reference to any dimension; a train’s ratio is a counting fact for the same reason. The two counts multiply, and what comes out is a clock. Everything in between — the arcs, the draw, the drop, the recoil — decides whether the count is reliable, and none of it decides what the count is.

What this makes readable

Essays that name this one as a prerequisite.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

The 8 of 11 essays linking to this one that name the most of the same objects.

The objects this essay names

Each one links to every other essay that touches it.

ApproximationBeatEscapementFactorisationGear trainIntegerPinionTooth countVelocity ratioWheel train