TOPICS
Search

Multiplicative Order


The multiplicative order of an integer b modulo an integer n>=2 relatively prime to b is the smallest positive integer exponent e for which b^e=1 (mod n). It is also called the haupt-exponent or modulo order.

If n has a primitive root g, then 1, g, g^2, ..., g^(phi(n)-1) form a reduced residue system modulo n, where phi(n) is the totient function. In this system, there are phi(phi(n)) primitive roots, namely the residues g^c for exponents c relatively prime to phi(n).

The multiplicative order is implemented in the Wolfram Language as MultiplicativeOrder[g, n].

When n has a primitive root and e is a positive divisor of phi(n), the number of distinct residue classes modulo n having multiplicative order e is phi(e). This count need not hold for other moduli. Cunningham (1922) published the multiplicative order for primes to 25409 and bases 2, 3, 5, 6, 7, 10, 11, and 12.

For example, the multiplicative order of 10 (mod 7) is 6, since

 10^6=1 (mod 7).
(1)

The multiplicative order of 10 mod an integer n>1 relatively prime to 10 gives the period of the decimal expansion of the reciprocal of n (Glaisher 1878, Lehmer 1941). For example, the haupt-exponent of 10 (mod 13) is 6, and

 1/(13)=0.076923^_,
(2)

which has period 6.

The following table gives the first few multiplicative orders for bases b (mod n), where the moduli n>=2 run in increasing order through the integers relatively prime to b.

bOEIShaupt-exponents
2A0023262, 4, 3, 6, 10, 12, 4, 8, 18, 6, 11, 20, 18, ...
3A0509751, 2, 4, 6, 2, 4, 5, 3, 6, 4, 16, 18, 4, 5, ...
4A0509761, 2, 3, 3, 5, 6, 2, 4, 9, 3, 11, 10, 9, 14, ...
5A0509771, 2, 1, 2, 6, 2, 6, 5, 2, 4, 6, 4, 16, 6, 9, ...
6A0509781, 2, 10, 12, 16, 9, 11, 5, 14, ...
7A0509791, 1, 2, 4, 1, 2, 3, 4, 10, 2, 12, 4, 2, 16, ...
8A0509802, 4, 1, 2, 10, 4, 4, 8, 6, 2, 11, 20, 6, 28, ...
9A0509811, 1, 2, 3, 1, 2, 5, 3, 3, 2, 8, 9, 2, 5, 11, ...
10A0023291, 6, 1, 2, 6, 16, 18, 6, 22, 3, 28, ...

If g is a primitive root modulo n and a is an arbitrary integer relatively prime to n, then there exists among the numbers 0, 1, 2, ..., phi(n)-1 exactly one number mu such that

 a=g^mu (mod n).
(3)

The number mu is the discrete logarithm of a to base g modulo n (Schneier 1996, p. 501). Note that Nagell (1951, p. 112) instead uses the term "index" and writes

 mu=ind_ga (mod n).
(4)

For example, the number 7 is a primitive root of n=41, and since 15=7^3 (mod 41), the discrete logarithm of 15 to base 7 is 3 (modulo 41) (Nagell 1951, p. 112).

The generalized multiplicative order used in the Wolfram Language is the smallest positive integer exponent e for which g^e is congruent modulo n to one of a specified set of target residues. It is implemented as MultiplicativeOrder[g, n, {a1, a2, ...}]. For a primitive root g and a single target a, this gives the discrete logarithm except for the residue 1, whose discrete logarithm is 0 and whose least positive exponent is phi(n).

With target residues -1 and 1, the generalized multiplicative order is the suborder function, denoted sord_n(a) for base a. With the single target residue 1, it is the ordinary multiplicative order ord_n(a), implemented as MultiplicativeOrder[a, n].


See also

Carmichael Function, Complete Residue System, Congruence, Discrete Logarithm, Full Reptend Prime, Out-Shuffle, Polynomial Order, Primitive Root, Suborder Function

Explore with Wolfram|Alpha

References

Burton, D. M. "The Order of an Integer Modulo n." §8.1 in Elementary Number Theory, 4th ed. Dubuque, IA: William C. Brown Publishers, pp. 184-190, 1989.Cunningham, A. Haupt-Exponents, Residue Indices, Primitive Roots. London, England: F. Hodgson, 1922.Glaisher, J. W. L. "Periods of Reciprocals of Integers Prime to 10." Proc. Cambridge Philos. Soc. 3, 185-206, 1878.Lehmer, D. H. "Guide to Tables in the Theory of Numbers." Bulletin No. 105. Washington, DC: National Research Council, pp. 7-12, 1941.Nagell, T. "Exponent of an Integer Modulo n" and "The Index Calculus." §31 and 33 in Introduction to Number Theory. New York: Wiley, pp. 102-106 and 111-115, 1951.Odlyzko, A. "Discrete Logarithms: The Past and the Future." https://www-users.cse.umn.edu/~odlyzko/doc/discrete.logs.future.pdf.Schneier, B. Applied Cryptography: Protocols, Algorithms, and Source Code in C, 2nd ed. New York: Wiley, 1996.Sloane, N. J. A. Sequences A002326/M0936, A002329/M4045, A050975, A050976, A050977, A050978, A050979, A050980, and A050981 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Multiplicative Order

Cite this as:

Weisstein, Eric W. "Multiplicative Order." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MultiplicativeOrder.html

Subject classifications