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

What is the value of \(4^{30}\bmod 13\)?

Choose one option.

Show answer
  • C. \(1\)

Explanation

Since \(13\) is prime, \(4^{12}\equiv 1\pmod{13}\). Also \(4^{3}=64\equiv -1\pmod{13}\), so \(4^{6}\equiv 1\) and \(4^{30}\equiv 4^{6}\equiv 1\pmod{13}\). The option \(3\) corresponds to \(4^{2}\), an error when reducing the exponent.

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-007 ZW-FERMAT-S-LITTLE-THEOREM-009 →