The concept of "order of an integer" in modular arithmetic tells us about the smallest positive integer, let's call it \( k \), such that raising an integer \( a \) to the power of \( k \) results in 1 modulo \( n \). In mathematical terms, this can be expressed as \( a^k \equiv 1 \pmod{n} \).
- The order of \( a \) modulo \( n \), often written as \( \text{ord}_n a \), is a foundational concept that helps to understand how numbers behave within modular arithmetic systems.
- If an integer \( a \) and the modulus \( n \) are relatively prime, meaning they share no common divisors other than 1, then the order exists and is well-defined.
To find this "order", you essentially check various powers of \( a \) modulo \( n \) until you arrive at \( 1 \). For instance, if \( a \equiv 2 \pmod{5} \), you check powers of 2 (like \( 2^1, 2^2, \) etc.) until you find one that equals 1 modulo 5. This foundational concept is crucial for solving many problems in number theory as it uncovers a cyclic nature in modular systems.