How do I calculate 4^23 mod 31? I think it can be done using Euler's Totient Function, but I don't know how.
2026-03-30 05:31:29.1774848689
Calculate modulo large number
6.3k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
This should be a relatively easy example. $4^{23}=2^{46}$. Now, since $2^5=32\equiv1\pmod{31}$,
$$2^{46}=(2^5)^9\times2=32^9\times2\equiv1\times2\equiv2\pmod{31}$$