Exercise · ZW-MODULAR-CONGRUENCE-005 · ★★☆ Intermediate

Compute \(3^4\bmod5\).

Choose one option.

Show answer
  • A. 1

Explanation

\(3^2=9\equiv4\) and \(3^4\equiv4^2=16\equiv1\pmod5\). Directly: \(81=16\cdot5+1\).

Study Discrete mathematics in ZWMath →

Review the concept: Modular congruence

Two integers \(a\) and \(b\) are congruent modulo a positive integer \(m\) if \(m\) divides their difference; equivalently, they leave the same remainder when divided by \(m\).

\[a\equiv b\pmod m\iff m\mid(a-b)\]

More practice problems: modular congruence

← ZW-MODULAR-CONGRUENCE-004 ZW-MODULAR-CONGRUENCE-006 →