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

Use Euler's theorem to find \(2^{1000} \bmod 9\).

Choose one option.

Show answer
  • D. 7

Explanation

Since \(\varphi(9)=6\) and \(1000=6\cdot 166+4\), we get \(2^4=16\equiv 7\pmod 9\). The option giving 2 arises from wrongly using \(\varphi(9)=3\).

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-006 ZW-EULER-S-THEOREM-008 →