I am struggling to get this problem started. I have looked at similar problems in the book I am using for class (Discrete Mathematics with Applications, 7E) but none of them are seeming to help. Any help on how to solve these types of questions? I understand that I may need to use Fermat's Little Theorem but I am not seeing how to apply it completely.
2026-04-21 08:44:18.1776761058
How to compute $21^{4600} \mod 47$
606 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
As you already mentioned, the first thing to do is use Fermat's Little Theorem, which says that for all primes $p$ and any $a$ that's relatively prime to $p$, $$ a^{p - 1} \equiv 1 \mod{p}$$ Notice in your example that $a = 21$ and $p = 47$ are indeed relatively prime, so $$21^{46} \equiv 1 \mod{47}$$ The next thing you want to do is notice that $4600 = 46(100)$. Recall that for any congruence $a \equiv b \mod{n}$, we also have that $a^k \equiv b^k \mod{n}$ for any $k \in \mathbb{N}$. In other words, we can "exponentiate" the congruence to the power of 100 to get $${21^{46}}^{100} \equiv 1^{100} \mod{47}$$ Or simply, $$21^{4600} \equiv 1 \mod{47}$$