fbpx
Wikipedia

Multiplicative order

In number theory, given a positive integer n and an integer a coprime to n, the multiplicative order of a modulo n is the smallest positive integer k such that .[1]

In other words, the multiplicative order of a modulo n is the order of a in the multiplicative group of the units in the ring of the integers modulo n.

The order of a modulo n is sometimes written as .[2]

Example edit

The powers of 4 modulo 7 are as follows:

 

The smallest positive integer k such that 4k ≡ 1 (mod 7) is 3, so the order of 4 (mod 7) is 3.

Properties edit

Even without knowledge that we are working in the multiplicative group of integers modulo n, we can show that a actually has an order by noting that the powers of a can only take a finite number of different values modulo n, so according to the pigeonhole principle there must be two powers, say s and t and without loss of generality s > t, such that as ≡ at (mod n). Since a and n are coprime, a has an inverse element a−1 and we can multiply both sides of the congruence with at, yielding ast ≡ 1 (mod n).

The concept of multiplicative order is a special case of the order of group elements. The multiplicative order of a number a modulo n is the order of a in the multiplicative group whose elements are the residues modulo n of the numbers coprime to n, and whose group operation is multiplication modulo n. This is the group of units of the ring Zn; it has φ(n) elements, φ being Euler's totient function, and is denoted as U(n) or U(Zn).

As a consequence of Lagrange's theorem, the order of a (mod n) always divides φ(n). If the order of a is actually equal to φ(n), and therefore as large as possible, then a is called a primitive root modulo n. This means that the group U(n) is cyclic and the residue class of a generates it.

The order of a (mod n) also divides λ(n), a value of the Carmichael function, which is an even stronger statement than the divisibility of φ(n).

Programming languages edit

See also edit

References edit

  1. ^ Niven, Zuckerman & Montgomery 1991, Section 2.8 Definition 2.6
  2. ^ von zur Gathen, Joachim; Gerhard, Jürgen (2013). Modern Computer Algebra (3rd ed.). Cambridge University Press. Section 18.1. ISBN 9781107039032.
  3. ^ Maxima 5.42.0 Manual: zn_order
  4. ^ Wolfram Language documentation
  5. ^ rosettacode.org - examples of multiplicative order in various languages

External links edit

multiplicative, order, number, theory, given, positive, integer, integer, coprime, multiplicative, order, modulo, smallest, positive, integer, such, that, textstyle, equiv, pmod, other, words, multiplicative, order, modulo, order, multiplicative, group, units,. In number theory given a positive integer n and an integer a coprime to n the multiplicative order of a modulo n is the smallest positive integer k such that a k 1 mod n textstyle a k equiv 1 pmod n 1 In other words the multiplicative order of a modulo n is the order of a in the multiplicative group of the units in the ring of the integers modulo n The order of a modulo n is sometimes written as ord n a displaystyle operatorname ord n a 2 Contents 1 Example 2 Properties 3 Programming languages 4 See also 5 References 6 External linksExample editThe powers of 4 modulo 7 are as follows 4 0 1 0 7 1 1 mod 7 4 1 4 0 7 4 4 mod 7 4 2 16 2 7 2 2 mod 7 4 3 64 9 7 1 1 mod 7 4 4 256 36 7 4 4 mod 7 4 5 1024 146 7 2 2 mod 7 displaystyle begin array llll 4 0 amp 1 amp 0 times 7 1 amp equiv 1 pmod 7 4 1 amp 4 amp 0 times 7 4 amp equiv 4 pmod 7 4 2 amp 16 amp 2 times 7 2 amp equiv 2 pmod 7 4 3 amp 64 amp 9 times 7 1 amp equiv 1 pmod 7 4 4 amp 256 amp 36 times 7 4 amp equiv 4 pmod 7 4 5 amp 1024 amp 146 times 7 2 amp equiv 2 pmod 7 vdots end array nbsp The smallest positive integer k such that 4k 1 mod 7 is 3 so the order of 4 mod 7 is 3 Properties editEven without knowledge that we are working in the multiplicative group of integers modulo n we can show that a actually has an order by noting that the powers of a can only take a finite number of different values modulo n so according to the pigeonhole principle there must be two powers say s and t and without loss of generality s gt t such that as at mod n Since a and n are coprime a has an inverse element a 1 and we can multiply both sides of the congruence with a t yielding as t 1 mod n The concept of multiplicative order is a special case of the order of group elements The multiplicative order of a number a modulo n is the order of a in the multiplicative group whose elements are the residues modulo n of the numbers coprime to n and whose group operation is multiplication modulo n This is the group of units of the ring Zn it has f n elements f being Euler s totient function and is denoted as U n or U Zn As a consequence of Lagrange s theorem the order of a mod n always divides f n If the order of a is actually equal to f n and therefore as large as possible then a is called a primitive root modulo n This means that the group U n is cyclic and the residue class of a generates it The order of a mod n also divides l n a value of the Carmichael function which is an even stronger statement than the divisibility of f n Programming languages editMaxima CAS zn order a n 3 Wolfram Language MultiplicativeOrder k n 4 Rosetta Code examples of multiplicative order in various languages 5 See also editDiscrete logarithm Modular arithmeticReferences edit Niven Zuckerman amp Montgomery 1991 Section 2 8 Definition 2 6 von zur Gathen Joachim Gerhard Jurgen 2013 Modern Computer Algebra 3rd ed Cambridge University Press Section 18 1 ISBN 9781107039032 Maxima 5 42 0 Manual zn order Wolfram Language documentation rosettacode org examples of multiplicative order in various languages Niven Ivan Zuckerman Herbert S Montgomery Hugh L 1991 An Introduction to the Theory of Numbers 5th ed John Wiley amp Sons ISBN 0 471 62546 9 External links editWeisstein Eric W Multiplicative Order MathWorld Retrieved from https en wikipedia org w index php title Multiplicative order amp oldid 1219465242, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.