3 ms·
Fun fact sort of about the Chinese Remainder Theorem: It appears to have been named after the fact that it appears in a medieval Chinese mathematical treatise.
by thaumasiotes 3y ago
Fun fact sort of about the Chinese Remainder Theorem:
It appears to have been named after the fact that it appears in a medieval Chinese mathematical treatise. But it always reminds me of the fact that in old Chinese texts it is frequently necessary to determine a number given its remainders modulo 10 and 12.
Why? Because that is the formal way to record dates! It has been for more than 3000 years. There is a Chinese cycle of 10 sequence markers, the "heavenly stems", and a separate cycle of 12, the "earthly branches". Because Chinese characters have no real ordering (there are ordering systems, but only specialists would bother learning or using them), the stems and branches are traditionally used when you need to give arbitrary names to things. (Examples of this survive in modern Chinese -- the two parties to a contract are 甲方 and 乙方, after the first two celestial stems 甲 and 乙 -- but modern Chinese are likely to use Western letters like A and B for their arbitrary names.)
The stems and branches together form the cycle of sixty, from 甲子 (1-1, meaning one) up to 癸亥 (10-12, meaning sixty). The system is so old that instead of incrementing one place value at a time for a cycle of 120 the values of which can be easily calculated in your head, incrementing bumps both place values, so the value following 甲子 is 乙丑, 2-2, meaning two. What does 乙卯 refer to? Well, 乙 is 2 (of 10) and 卯 is 4 (of 12). A little work with the Chinese Remainder Theorem will get you there!