Exercise · ZW-EULER-S-THEOREM-009 · ★★☆ Intermediate

Compute \(5^{2025}\bmod 16\).

Choose one option.

Show answer
  • B. 5

Explanation

Since \(\varphi(16)=8\) and \(2025\equiv 1\pmod 8\), we get \(5^{2025}\equiv 5\pmod{16}\). The option 9 comes from squaring 5 without correctly reducing the exponent.

Study Elementary number theory in ZWMath →

Review the concept: Euler's theorem

Euler's theorem states that if \(a\) and \(n\) are coprime, then \(a^{\varphi(n)} \equiv 1 \pmod{n}\), generalizing Fermat's little theorem to composite moduli.

\[a^{\varphi(n)} \equiv 1 \pmod{n}, \quad \gcd(a,n)=1\]

More practice problems: euler's theorem

← ZW-EULER-S-THEOREM-008 ZW-EULER-S-THEOREM-010 →