Exercise · ZW-FERMAT-S-LITTLE-THEOREM-007 · ★★☆ Intermediate
Find the remainder of \(3^{50}\) when divided by \(7\).
Choose one option.
Show answer
- D. \(2\)
Exercise · ZW-FERMAT-S-LITTLE-THEOREM-007 · ★★☆ Intermediate
Choose one option.
Since \(7\) is prime, \(3^{6}\equiv 1\pmod 7\). Also \(50=6\cdot 8+2\), so \(3^{50}\equiv 3^{2}=9\equiv 2\pmod 7\). The option \(1\) is a typical error from ignoring the remainder of the exponent.
Fermat's little theorem states that if \(p\) is a prime number and \(a\) is an integer not divisible by \(p\), then \(a^{p-1}\equiv 1 \pmod{p}\). It is a basic tool for simplifying modular powers.
← ZW-FERMAT-S-LITTLE-THEOREM-006 ZW-FERMAT-S-LITTLE-THEOREM-008 →