HOME

TheInfoList



OR:

In
modular arithmetic In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his boo ...
, the
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the languag ...
s
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
(relatively prime) to ''n'' from the set \ of ''n'' non-negative integers form a
group A group is a number of persons or things that are located, gathered, or classed together. Groups of people * Cultural group, a group whose members share the same cultural identity * Ethnic group, a group whose members share the same ethnic ide ...
under multiplication modulo ''n'', called the multiplicative group of integers modulo ''n''. Equivalently, the elements of this group can be thought of as the congruence classes, also known as ''residues'' modulo ''n'', that are coprime to ''n''. Hence another name is the group of primitive residue classes modulo ''n''. In the theory of rings, a branch of
abstract algebra In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures. Algebraic structures include groups, rings, fields, modules, vector spaces, lattices, and algebras over a field. The ter ...
, it is described as the
group of units In algebra, a unit of a ring is an invertible element for the multiplication of the ring. That is, an element of a ring is a unit if there exists in such that vu = uv = 1, where is the multiplicative identity; the element is unique for thi ...
of the ring of integers modulo ''n''. Here ''units'' refers to elements with a
multiplicative inverse In mathematics, a multiplicative inverse or reciprocal for a number ''x'', denoted by 1/''x'' or ''x''−1, is a number which when multiplied by ''x'' yields the multiplicative identity, 1. The multiplicative inverse of a fraction ''a''/' ...
, which, in this ring, are exactly those coprime to ''n''. This
quotient group A quotient group or factor group is a mathematical group obtained by aggregating similar elements of a larger group using an equivalence relation that preserves some of the group structure (the rest of the structure is "factored" out). For exam ...
, usually denoted (\mathbb/n\mathbb)^\times, is fundamental in
number theory Number theory (or arithmetic or higher arithmetic in older usage) is a branch of pure mathematics devoted primarily to the study of the integers and integer-valued functions. German mathematician Carl Friedrich Gauss (1777–1855) said, "Ma ...
. It is used in
cryptography Cryptography, or cryptology (from grc, , translit=kryptós "hidden, secret"; and ''graphein'', "to write", or '' -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adv ...
,
integer factorization In number theory, integer factorization is the decomposition of a composite number into a product of smaller integers. If these factors are further restricted to prime numbers, the process is called prime factorization. When the numbers are s ...
, and
primality test A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whet ...
ing. It is an
abelian Abelian may refer to: Mathematics Group theory * Abelian group, a group in which the binary operation is commutative ** Category of abelian groups (Ab), has abelian groups as objects and group homomorphisms as morphisms * Metabelian group, a grou ...
,
finite Finite is the opposite of infinite. It may refer to: * Finite number (disambiguation) * Finite set, a set whose cardinality (number of elements) is some natural number * Finite verb, a verb form that has a subject, usually being inflected or marke ...
group whose order is given by
Euler's totient function In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ...
: , (\mathbb/n\mathbb)^\times, =\varphi(n). For prime ''n'' the group is
cyclic Cycle, cycles, or cyclic may refer to: Anthropology and social sciences * Cyclic history, a theory of history * Cyclical theory, a theory of American political history associated with Arthur Schlesinger, Sr. * Social cycle, various cycles in so ...
and in general the structure is easy to describe, though even for prime ''n'' no general formula for finding generators is known.


Group axioms

It is a straightforward exercise to show that, under multiplication, the set of
congruence class In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book ...
es modulo ''n'' that are coprime to ''n'' satisfy the axioms for an
abelian group In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is comm ...
. Indeed, ''a'' is coprime to ''n'' if and only if . Integers in the same congruence class satisfy , hence one is coprime to ''n'' if and only if the other is. Thus the notion of congruence classes modulo ''n'' that are coprime to ''n'' is well-defined. Since and implies , the set of classes coprime to ''n'' is closed under multiplication. Integer multiplication respects the congruence classes, that is, and implies . This implies that the multiplication is associative, commutative, and that the class of 1 is the unique multiplicative identity. Finally, given ''a'', the
multiplicative inverse In mathematics, a multiplicative inverse or reciprocal for a number ''x'', denoted by 1/''x'' or ''x''−1, is a number which when multiplied by ''x'' yields the multiplicative identity, 1. The multiplicative inverse of a fraction ''a''/' ...
of ''a'' modulo ''n'' is an integer ''x'' satisfying . It exists precisely when ''a'' is coprime to ''n'', because in that case and by Bézout's lemma there are integers ''x'' and ''y'' satisfying . Notice that the equation implies that ''x'' is coprime to ''n'', so the multiplicative inverse belongs to the group.


Notation

The set of (congruence classes of) integers modulo ''n'' with the operations of addition and multiplication is a ring. It is denoted \mathbb/n\mathbb  or  \mathbb/(n)  (the notation refers to taking the
quotient In arithmetic, a quotient (from lat, quotiens 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics, and is commonly referred to as the integer part of a ...
of integers modulo the
ideal Ideal may refer to: Philosophy * Ideal (ethics), values that one actively pursues as goals * Platonic ideal, a philosophical idea of trueness of form, associated with Plato Mathematics * Ideal (ring theory), special subsets of a ring considered ...
n\mathbb or (n) consisting of the multiples of ''n''). Outside of number theory the simpler notation \mathbb_n is often used, though it can be confused with the -adic integers when ''n'' is a prime number. The multiplicative group of integers modulo ''n'', which is the
group of units In algebra, a unit of a ring is an invertible element for the multiplication of the ring. That is, an element of a ring is a unit if there exists in such that vu = uv = 1, where is the multiplicative identity; the element is unique for thi ...
in this ring, may be written as (depending on the author) (\mathbb/n\mathbb)^\times,   (\mathbb/n\mathbb)^*,   \mathrm(\mathbb/n\mathbb),   \mathrm(\mathbb/n\mathbb)   (for German ''Einheit'', which translates as ''unit''), \mathbb_n^*, or similar notations. This article uses (\mathbb/n\mathbb)^\times. The notation \mathrm_n refers to the
cyclic group In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bina ...
of order ''n''. It is
isomorphic In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them. The word i ...
to the group of integers modulo ''n'' under addition. Note that \mathbb/n\mathbb or \mathbb_n may also refer to the group under addition. For example, the multiplicative group (\mathbb/p\mathbb)^\times for a prime ''p'' is cyclic and hence isomorphic to the additive group \mathbb/(p-1)\mathbb, but the isomorphism is not obvious.


Structure

The order of the multiplicative group of integers modulo ''n'' is the number of integers in \ coprime to ''n''. It is given by
Euler's totient function In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ...
: , (\mathbb/n\mathbb)^\times, =\varphi(n) . For prime ''p'', \varphi(p)=p-1.


Cyclic case

The group (\mathbb/n\mathbb)^\times is
cyclic Cycle, cycles, or cyclic may refer to: Anthropology and social sciences * Cyclic history, a theory of history * Cyclical theory, a theory of American political history associated with Arthur Schlesinger, Sr. * Social cycle, various cycles in so ...
if and only if ''n'' is 1, 2, 4, ''p''''k'' or 2''p''''k'', where ''p'' is an odd prime and . For all other values of ''n'' the group is not cyclic. This was first proved by
Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refer ...
. This means that for these ''n'': : (\mathbb/n\mathbb)^\times \cong \mathrm_, where \varphi(p^k)=\varphi(2 p^k)=p^k - p^. By definition, the group is cyclic if and only if it has a generator ''g'' (a
generating set In mathematics and physics, the term generator or generating set may refer to any of a number of related concepts. The underlying concept in each case is that of a smaller set of objects, together with a set of operations that can be applied to ...
of size one), that is, the powers g^0,g^1,g^2,\dots, give all possible residues modulo ''n'' coprime to ''n'' (the first \varphi(n) powers g^0,\dots,g^ give each exactly once). A generator of (\mathbb/n\mathbb)^\times is called a primitive root modulo ''n''. If there is any generator, then there are \varphi(\varphi(n)) of them.


Powers of 2

Modulo 1 any two integers are congruent, i.e., there is only one congruence class, coprime to 1. Therefore, (\mathbb/1\,\mathbb)^\times \cong \mathrm_1 is the trivial group with element. Because of its trivial nature, the case of congruences modulo 1 is generally ignored and some authors choose not to include the case of ''n'' = 1 in theorem statements. Modulo 2 there is only one coprime congruence class, so (\mathbb/2\mathbb)^\times \cong \mathrm_1 is the
trivial group In mathematics, a trivial group or zero group is a group consisting of a single element. All such groups are isomorphic, so one often speaks of the trivial group. The single element of the trivial group is the identity element and so it is usuall ...
. Modulo 4 there are two coprime congruence classes, and so (\mathbb/4\mathbb)^\times \cong \mathrm_2, the cyclic group with two elements. Modulo 8 there are four coprime congruence classes, and The square of each of these is 1, so (\mathbb/8\mathbb)^\times \cong \mathrm_2 \times \mathrm_2, the
Klein four-group In mathematics, the Klein four-group is a group with four elements, in which each element is self-inverse (composing it with itself produces the identity) and in which composing any two of the three non-identity elements produces the third one ...
. Modulo 16 there are eight coprime congruence classes 1 3and 5 \\cong \mathrm_2 \times \mathrm_2, is the 2-
torsion subgroup In the theory of abelian groups, the torsion subgroup ''AT'' of an abelian group ''A'' is the subgroup of ''A'' consisting of all elements that have finite order (the torsion elements of ''A''). An abelian group ''A'' is called a torsion group (or ...
(i.e., the square of each element is 1), so (\mathbb/16\mathbb)^\times is not cyclic. The powers of 3, \ are a subgroup of order 4, as are the powers of 5, \.   Thus (\mathbb/16\mathbb)^\times \cong \mathrm_2 \times \mathrm_4. The pattern shown by 8 and 16 holds for higher powers 2''k'', : \\cong \mathrm_2 \times \mathrm_2, is the 2-torsion subgroup (so (\mathbb/2^k\mathbb)^\times is not cyclic) and the powers of 3 are a cyclic subgroup of order , so (\mathbb/2^k\mathbb)^\times \cong \mathrm_2 \times \mathrm_.


General composite numbers

By the fundamental theorem of finite abelian groups, the group (\mathbb/n\mathbb)^\times is isomorphic to a
direct product In mathematics, one can often define a direct product of objects already known, giving a new one. This generalizes the Cartesian product of the underlying sets, together with a suitably defined structure on the product set. More abstractly, one t ...
of cyclic groups of prime power orders. More specifically, the
Chinese remainder theorem In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of the ...
says that if \;\;n=p_1^p_2^p_3^\dots, \; then the ring \mathbb/n\mathbb is the
direct product In mathematics, one can often define a direct product of objects already known, giving a new one. This generalizes the Cartesian product of the underlying sets, together with a suitably defined structure on the product set. More abstractly, one t ...
of the rings corresponding to each of its prime power factors: :\mathbb/n\mathbb \cong \mathbb/\mathbb\; \times \;\mathbb/\mathbb \;\times\; \mathbb/\mathbb\dots\;\; Similarly, the group of units (\mathbb/n\mathbb)^\times is the direct product of the groups corresponding to each of the prime power factors: :(\mathbb/n\mathbb)^\times\cong (\mathbb/\mathbb)^\times \times (\mathbb/\mathbb)^\times \times (\mathbb/\mathbb)^\times \dots\;. For each odd prime power p^ the corresponding factor (\mathbb/\mathbb)^\times is the cyclic group of order \varphi(p^k)=p^k - p^, which may further factor into cyclic groups of prime-power orders. For powers of 2 the factor (\mathbb/\mathbb)^\times is not cyclic unless ''k'' = 0, 1, 2, but factors into cyclic groups as described above. The order of the group \varphi(n) is the product of the orders of the cyclic groups in the direct product. The
exponent Exponentiation is a mathematical operation, written as , involving two numbers, the '' base'' and the ''exponent'' or ''power'' , and pronounced as " (raised) to the (power of) ". When is a positive integer, exponentiation corresponds to r ...
of the group, that is, the
least common multiple In arithmetic and number theory, the least common multiple, lowest common multiple, or smallest common multiple of two integers ''a'' and ''b'', usually denoted by lcm(''a'', ''b''), is the smallest positive integer that is divisible by ...
of the orders in the cyclic groups, is given by the
Carmichael function In number theory, a branch of mathematics, the Carmichael function of a positive integer is the smallest positive integer such that :a^m \equiv 1 \pmod holds for every integer coprime to . In algebraic terms, is the exponent of the multi ...
\lambda(n) . In other words, \lambda(n) is the smallest number such that for each ''a'' coprime to ''n'', a^ \equiv 1 \pmod n holds. It divides \varphi(n) and is equal to it if and only if the group is cyclic.


Subgroup of false witnesses

If ''n'' is composite, there exists a subgroup of the multiplicative group, called the "group of false witnesses", in which the elements, when raised to the power , are congruent to 1 modulo ''n''. (Because the residue 1 when raised to any power is congruent to 1 modulo ''n'', the set of such elements is nonempty.) One could say, because of
Fermat's Little Theorem Fermat's little theorem states that if ''p'' is a prime number, then for any integer ''a'', the number a^p - a is an integer multiple of ''p''. In the notation of modular arithmetic, this is expressed as : a^p \equiv a \pmod p. For example, if = ...
, that such residues are "false positives" or "false witnesses" for the primality of ''n''. The number 2 is the residue most often used in this basic primality check, hence is famous since 2340 is congruent to 1 modulo 341, and 341 is the smallest such composite number (with respect to 2). For 341, the false witnesses subgroup contains 100 residues and so is of index 3 inside the 300 element multiplicative group mod 341.


Examples


''n'' = 9

The smallest example with a nontrivial subgroup of false witnesses is . There are 6 residues coprime to 9: 1, 2, 4, 5, 7, 8. Since 8 is congruent to , it follows that 88 is congruent to 1 modulo 9. So 1 and 8 are false positives for the "primality" of 9 (since 9 is not actually prime). These are in fact the only ones, so the subgroup is the subgroup of false witnesses. The same argument shows that is a "false witness" for any odd composite ''n''.


''n'' = 91

For ''n'' = 91 (= 7 × 13), there are \varphi(91)=72 residues coprime to 91, half of them (i.e., 36 of them) are false witnesses of 91, namely 1, 3, 4, 9, 10, 12, 16, 17, 22, 23, 25, 27, 29, 30, 36, 38, 40, 43, 48, 51, 53, 55, 61, 62, 64, 66, 68, 69, 74, 75, 79, 81, 82, 87, 88, and 90, since for these values of ''x'', ''x''90 is congruent to 1 mod 91.


''n'' = 561

''n'' = 561 (= 3 × 11 × 17) is a
Carmichael number In number theory, a Carmichael number is a composite number n, which in modular arithmetic satisfies the congruence relation: :b^n\equiv b\pmod for all integers b. The relation may also be expressed in the form: :b^\equiv 1\pmod. for all integers ...
, thus ''s''560 is congruent to 1 modulo 561 for any integer ''s'' coprime to 561. The subgroup of false witnesses is, in this case, not proper; it is the entire group of multiplicative units modulo 561, which consists of 320 residues.


Examples

This table shows the cyclic decomposition of (\mathbb/n\mathbb)^\times and a
generating set In mathematics and physics, the term generator or generating set may refer to any of a number of related concepts. The underlying concept in each case is that of a smaller set of objects, together with a set of operations that can be applied to ...
for ''n'' ≤ 128. The decomposition and generating sets are not unique; for example, \displaystyle \begin(\mathbb/35\mathbb)^\times & \cong (\mathbb/5\mathbb)^\times \times (\mathbb/7\mathbb)^\times \cong \mathrm_4 \times \mathrm_6 \cong \mathrm_4 \times \mathrm_2 \times \mathrm_3 \cong \mathrm_2 \times \mathrm_ \cong (\mathbb/4\mathbb)^\times \times (\mathbb/13\mathbb)^\times \\ & \cong (\mathbb/52\mathbb)^\times \end (but \not\cong \mathrm_ \cong \mathrm_8 \times \mathrm_3). The table below lists the shortest decomposition (among those, the lexicographically first is chosen – this guarantees isomorphic groups are listed with the same decompositions). The generating set is also chosen to be as short as possible, and for ''n'' with primitive root, the smallest primitive root modulo ''n'' is listed. For example, take (\mathbb/20\mathbb)^\times. Then \varphi(20)=8 means that the order of the group is 8 (i.e., there are 8 numbers less than 20 and coprime to it); \lambda(20)=4 means the order of each element divides 4, that is, the fourth power of any number coprime to 20 is congruent to 1 (mod 20). The set generates the group, which means that every element of (\mathbb/20\mathbb)^\times is of the form (where ''a'' is 0, 1, 2, or 3, because the element 3 has order 4, and similarly ''b'' is 0 or 1, because the element 19 has order 2). Smallest primitive root mod ''n'' are (0 if no root exists) :0, 1, 2, 3, 2, 5, 3, 0, 2, 3, 2, 0, 2, 3, 0, 0, 3, 5, 2, 0, 0, 7, 5, 0, 2, 7, 2, 0, 2, 0, 3, 0, 0, 3, 0, 0, 2, 3, 0, 0, 6, 0, 3, 0, 0, 5, 5, 0, 3, 3, 0, 0, 2, 5, 0, 0, 0, 3, 2, 0, 2, 3, 0, 0, 0, 0, 2, 0, 0, 0, 7, 0, 5, 5, 0, 0, 0, 0, 3, 0, 2, 7, 2, 0, 0, 3, 0, 0, 3, 0, ... Numbers of the elements in a minimal generating set of mod ''n'' are :0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 3, 1, 2, 1, 2, 2, 1, 1, 3, 1, 1, 2, 2, 1, 1, 2, 3, 2, 1, 1, 3, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 1, 2, 2, 2, 2, 1, 3, 1, 1, 1, 3, 2, 1, 2, 3, 1, 2, ...


See also

* Lenstra elliptic curve factorization


Notes


References

The ''
Disquisitiones Arithmeticae The (Latin for "Arithmetical Investigations") is a textbook of number theory written in Latin by Carl Friedrich Gauss in 1798 when Gauss was 21 and first published in 1801 when he was 24. It is notable for having had a revolutionary impact on th ...
'' has been translated from Gauss's Ciceronian Latin into
English English usually refers to: * English language * English people English may also refer to: Peoples, culture, and language * ''English'', an adjective for something of, from, or related to England ** English national ...
and
German German(s) may refer to: * Germany (of or related to) **Germania (historical use) * Germans, citizens of Germany, people of German ancestry, or native speakers of the German language ** For citizens of Germany, see also German nationality law **Ge ...
. The German edition includes all of his papers on number theory: all the proofs of
quadratic reciprocity In number theory, the law of quadratic reciprocity is a theorem about modular arithmetic that gives conditions for the solvability of quadratic equations modulo prime numbers. Due to its subtlety, it has many formulations, but the most standard st ...
, the determination of the sign of the Gauss sum, the investigations into biquadratic reciprocity, and unpublished notes. * * * *


External links

* *{{MathWorld , title=Primitive Root , id=PrimitiveRoot
Web-based tool to interactively compute group tables
by John Jones Finite groups Modular arithmetic Multiplication