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

Compute \(6^{17}\bmod 17\).

Choose one option.

Show answer
  • B. \(6\)

Explanation

Since \(17\) is prime, \(6^{17}\equiv 6^{1}\cdot 6^{16}\equiv 6\pmod{17}\), using \(a^p\equiv a\). The option \(1\) is a typical error from applying \(a^{p-1}\equiv 1\) to the exponent \(17\) instead of \(16\).

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-008 ZW-FERMAT-S-LITTLE-THEOREM-010 →