Exercise · ZW-MODULAR-INVERSE-001 · ★☆☆ Basic

What is the necessary and sufficient condition for \(a\) to have an inverse modulo \(m\)?

Choose one option.

Show answer
  • D. \(\gcd(a,m)=1\)

Explanation

A modular inverse exists exactly when \(a\) and \(m\) are coprime. The other options are neither necessary nor sufficient for existence.

Study Elementary number theory in ZWMath →

Review the concept: Modular inverse

The modular inverse of an integer \(a\) modulo \(m\) is an integer \(b\) whose product with \(a\) is congruent to 1 modulo \(m\).

\[ab \equiv 1 \pmod{m}\]

More practice problems: modular inverse

ZW-MODULAR-INVERSE-002 →