Sunday Times Teaser 3259 – Something To Get Your Teeth Into
by Colin Vout
Published Sunday March 09 2025 (link)
My bicycle has a set of three toothed rings (“chainrings”) attached to the pedal mechanism; I’d chosen these, with different numbers of teeth, from offered values of 30, 41, 45, 47, 58. Correspondingly, the rear wheel mechanism is attached to a set of five toothed rings (“sprockets”), each with no more than 20 teeth. A chain passes over one ring from each set, as selected by the gear controls; at any time the gear ratio is the number of teeth on the selected chainring divided by the number of teeth on the selected sprocket.
There are exactly three pairs of chainring/sprocket combinations that give gear ratios whose difference equals one divided by a whole number more than 100.
What are the numbers of teeth on the sprockets, in ascending order?
This is a slow but general solution that will find solutions for different lower limits on the gear ratio difference denominators:
Here is a faster solution:
This version is a bit more efficient as the second sprocket is estimated/calculated.
Performing an inaccurate check with an higher threshold (0.011) before an accurate check also brings the internal runtime down.