Orders and quadratic residues · Definition

Multiplicative order

elementary number theoryorders and quadratic residues

Before you start you need to know

Many questions about powers in modular arithmetic reduce to knowing how many times a number must be raised before it returns to 1. This concept is the foundation of primitive roots.

Definition

The multiplicative order of \( a \) modulo \( n \), \( \operatorname{ord}_n(a) \), is the smallest positive exponent that returns \( a \) to the unit class modulo \( n \).

\[\operatorname{ord}_n(a)=\min\{k\ge 1: a^k\equiv 1 \pmod{n}\}\]

If \( \operatorname{ord}_n(a)=k \), then \( a^m \equiv 1 \pmod{n} \) if and only if \( k \mid m \). It follows that the order always divides \( \varphi(n) \), which is Euler's theorem seen through the order.

For \( n=7 \) and \( a=2 \), the powers are \( 2, 4, 1 \), so \( \operatorname{ord}_7(2)=3 \). This value is consistent with \( \varphi(7)=6 \), since 3 divides 6.

A typical mistake is to assume that the order of every \( a \) equals \( \varphi(n) \). The case \( \operatorname{ord}_7(2)=3 \) already disproves this, and the order does not exist when \( \gcd(a,n)>1 \).

Think about it

If \( \operatorname{ord}_n(a)=k \), which exponents \( m \) satisfy \( a^m \equiv 1 \pmod{n} \)?

Exactly the multiples of \( k \), that is, the \( m \) with \( k \mid m \).

Exercises 10

What comes next

References

  • David M. Burton, Elementary Number Theory, 7th edition, McGraw-Hill, 2011. cap. 8
  • Ivan Niven, Herbert S. Zuckerman, Hugh L. Montgomery, An Introduction to the Theory of Numbers, 5th edition, Wiley, 1991. cap. 2