The fundamental mathematical concepts revealed in this answer, especially the use of Euler's totient theorem, are worth pondering because it is this branch of modular arithmetic that Diffie and Hellman first proposed, and then Rivest, Shamir, and Adleman concretely used to produce, well, RSA:<p><a href="https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Operation" rel="nofollow">https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Operation</a><p>Sadly, quantum supremacy may mean this form of cryptography will soon be dead, but this curious application is why modular arithmetic is a favorite of mine. It was a branch of math that historically had a few niche applications, and then in the 21st century became an underpinning to global capitalism.