What Hot Dogs Can Teach Us About Number Theory
quantamagazine.org
quantamagazine.org
https://en.wikipedia.org/wiki/Residue_number_system
For example, since 2 and 3 are coprime, if you store the residues of any number N modulo 2 and 3 separately, you can do additions, subtractions and multiplication modulo 6 by doing the same operations on the two residues (independently of each other).
With this system it is possible to arithmetic on huge numbers in massively parallel fashion. The drawbacks are that division is hard (except when you know that the division is exact), overflow detection / comparison are hard, and converting from the residue number system to N is expensive.
Unless you're happy with the assertion that 15*14==0, that is. I don't judge.
If you don't know how big the numbers get, then you do run into the issue I mentioned of overflow detection being expensive.
Usage: "10 and 9 are coprime"
Edit: removed plural
Your plural incorrectly suggests that 10 is coprime and 9 is coprime.
The "abstract examples" part of the article actually does a pretty good job of explaining the concept in a way I haven't encountered before, so I'm glad you asked this.
My former phone provider had 30 days subscription periods, not accounting for 31, 29 and 28 days long months.