The Gaussian-School of Higher-Arithmetic (1831, updated 2022); tutorial #21 page 11e.
The Arithmetic of Clocks, page 11e.