Exercise · ZW-FERMAT-S-LITTLE-THEOREM-002 · ★★☆ Intermediate
What is the value of \(3^{6}\bmod 7\)?
Choose one option.
Show answer
- A. \(1\)
Exercise · ZW-FERMAT-S-LITTLE-THEOREM-002 · ★★☆ Intermediate
Choose one option.
Since \(7\) is prime and \(7\nmid 3\), the theorem gives \(3^{6}\equiv 1\pmod 7\). The option giving \(3\) results from confusing \(3^6\) with \(3^1\).
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-001 ZW-FERMAT-S-LITTLE-THEOREM-003 →