Calculate $7^{154} \pmod{341}$

61 Views Asked by At

how to calculate remainder of $7^ {154}$ when it is divided by $341$. Could you please state which method or theorem to use.

1

There are 1 best solutions below

2
On BEST ANSWER

Notice, that $7^3 = 343$ and $341*3=1023$, so $2^{10} \equiv 1 \pmod{341}$, then

$$7^{154} \equiv 7 * 2^{51} \equiv 7 * 1 * 2 = 14 \pmod{341}$$