markr wrote:You need to show that 19^(45-1) = 1 mod 45
Calculate 19^2 mod 45
It's easy from there...
I knew this part as well...
Please elaborate...
This is what I've tried thus far...
We know that 45 = 5 * 9, hence is composite as you mentioned...
We need to show that 19^45 = 19 (mod 45)
But to establish this it is sufficient to show that:
19^45 = 19 (mod 9) and 19^45 = 19 (mod 5)
since gcd(9,5) = 1 (they are relatively prime)
Also, gcd(19,5) = 1 and this implies that 19^4 = 1 (mod 5) (Fermat)
then what?