Exercise · ZW-FERMAT-S-LITTLE-THEOREM-002 · ★★☆ Intermediate

What is the value of \(3^{6}\bmod 7\)?

Choose one option.

Show answer
  • A. \(1\)

Explanation

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\).

Study Elementary number theory in ZWMath →

Review the concept: Fermat's little theorem

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.

\[a^{p-1}\equiv 1 \pmod{p}, \quad p\nmid a\]

More practice problems: fermat's little theorem

← ZW-FERMAT-S-LITTLE-THEOREM-001 ZW-FERMAT-S-LITTLE-THEOREM-003 →