I'm trying to work through the math behind public key encryption, I'm a computer programmer, but not a mathematician. I came across this wonderful example, but I'm confused about the use of (mod x) my understanding of modulus is that it is the remainder after devision. e.g. 5 % 2 = 1. but this is odd:
rs ≡ 1 (mod m) where r = 3, s = 59 and m = 176
how can s = 59 my understanding is that 1 mod 176 would be 1.