The Chinese Remainder Theorem

koto trap, avant-garde jazz disco, harpischord g-funk

Listen on 93

Lyrics

[Verse 1]
When numbers clash in modular space
Two equations, different base
X equals three mod seven they say
X equals five mod four today
Seems impossible, but here's the key
When greatest common factors free

[Chorus]
Chinese whispers through the math
Coprime moduli clear the path
Break apart what seems as one
Independent problems, easily done
Multiply the moduli together
Unique solution, now and ever

[Verse 2]
Ancient Chinese knew this trick
Counting soldiers, arithmetic
Rows of three leave two behind
Rows of five leave four you'll find
Sun Tzu's riddle shows the way
Structure hiding in array

[Chorus]
Chinese whispers through the math
Coprime moduli clear the path
Break apart what seems as one
Independent problems, easily done
Multiply the moduli together
Unique solution, now and ever

[Bridge]
Integers mod twenty-eight
Split to four and seven's fate
Ring isomorphism reveals
How the algebra unseals
Product space of smaller rings
This is where the theorem sings

[Verse 3]
Generalize to any count
Pairwise coprime, paramount
Each remainder finds its place
In the reconstructed space
Decomposition shows the truth
Algebraic fountain of youth

[Chorus]
Chinese whispers through the math
Coprime moduli clear the path
Break apart what seems as one
Independent problems, easily done
Multiply the moduli together
Unique solution, now and ever

[Outro]
When the factors share no thread
Complex systems lose their dread
Chinese Remainder shows the art
How to tear equations apart

← Linear Congruences | Euler's Totient Function →