Two parties who have never met wish to agree on a secret value while every message they exchange is read by an eavesdropper. One solution begins with a public set carrying a single public operation and a public starting element . Each party privately chooses a count of repetitions—say and —combines with itself that many times, and publishes the result. Each then takes the other’s published element and applies their own secret count of repetitions to it. If repetition is well behaved, both arrive at the element produced by repetitions of , and so share a secret, while the eavesdropper has seen only and the two published values. Three demands on the operation are implicit. It must compose: “ repetitions, then more” must be unambiguous however the intermediate steps are bracketed. It must invert: repetition counts should obey an arithmetic, with an identity and the possibility of undoing a step, not a mere accumulation. And it must hide repetition: recovering the secret count from the published value must be hard. The third demand is a computational matter taken up in later volumes; the first two are algebra, and this section isolates exactly the structure that supplies them.
That structure is the group, the foundational abstraction of modern algebra. A group axiomatises the bare minimum needed to discuss symmetry and invertible composition: one associative operation with an identity and inverses. Almost every object met later in this series is a group—the integers modulo a prime under addition, the nonzero residues under multiplication, the points of an elliptic curve, the symmetries of a finite field. This section develops group theory from first principles and proves its central structural results in full: Lagrange’s theorem, the classification of cyclic groups, the quotient of an abelian group by a subgroup, and the basic theory of homomorphisms and isomorphisms. The payoff for the opening problem is the cyclic-group theory together with Lagrange’s theorem: in any finite group, the arithmetic of repetition counts is precisely the modular arithmetic of 2, the modulus being the order of the repeated element—a divisor of the group’s order.
The first task is to make “combining two elements” precise.
Let be a set. A binary operation on is a function
Closure—that again lies in —is built into the very statement that maps into . We name it explicitly nonetheless, because for a subset the question of whether restricts to a binary operation on is exactly the question of whether is closed under ; this question drives the theory of subgroups below (§3.4).
A group is a pair consisting of a set and a binary operation on satisfying three axioms.
Associativity. For all , .
Identity. There exists such that for all .
Inverses. For each there exists such that , where is an identity as in (G2).
A set with an operation satisfying only (G1) is a semigroup; if it also satisfies (G2) it is a monoid. A group is thus a monoid in which every element is invertible.
The number of elements of , written , is the order of the group; if is finite, is a finite group, and otherwise an infinite group. We frequently say “the group ”, leaving the operation understood.
The axioms assert the existence of an identity and of inverses, but not, on their face, uniqueness. Uniqueness is a theorem—and a useful one, since it is what licenses the notations and .
Let be a group.
The identity element is unique.
Each has a unique inverse, denoted .
(Cancellation.) For all : if then , and if then .
For all , and .
(1) Suppose and both satisfy (G2). Using that is an identity, ; using that is an identity, . Hence .
(2) Suppose and are both inverses of . Then
using (G2), the inverse property of , associativity, and the inverse property of .
(3) Suppose . Multiplying on the left by and reassociating,
The right-cancellation law is proved symmetrically, multiplying on the right by .
(4) Since , the element is an inverse of ; by (2) it is the inverse, so . For the product formula, compute
and symmetrically ; by (2), . The order reversal is the “socks–shoes” rule: the inverse of putting on socks, then shoes, is removing shoes, then socks. □
Two notational conventions dominate. Multiplicative notation writes the operation as juxtaposition (or ), the identity as , the inverse as , and powers as for , with and . Additive notation, reserved almost exclusively for commutative groups, writes , the identity as , the inverse as , and for the -fold sum. The exponent laws
hold for all integers , proved by induction together with Proposition 3.3. Henceforth denotes , and we drop the symbol unless clarity demands it.
The power notation presumes something the axioms do not literally grant: that an -fold product needs no brackets at all. Axiom (G1) speaks only of three factors. The gap is closed once and for all by the next proposition, and thereafter products are written without brackets and powers without comment.
Let , , be elements of a group—or of any set with an associative operation. Every way of bracketing the product yields the same element, namely the left-normed product . In particular is a single well-defined element, however the factors are combined.
By strong induction on . For there is only one bracketing, and for the two bracketings agree by (G1). Let and assume the claim for all shorter products. Any bracketed product of has an outermost multiplication, splitting it as with a bracketed product of and one of , for some . The induction hypothesis evaluates both halves: , and is the left-normed product of . If , then and directly. If , write with the left-normed product of ; then (G1) and the induction hypothesis, applied to the bracketed product of the elements , give
Every bracketing therefore equals . □
A group is abelian (or commutative) if for all ; otherwise it is non-abelian.
The term honours Niels Henrik Abel. In an abelian group products may be freely reordered, and the socks–shoes formula loses its order-sensitivity. Convention reserves additive notation for abelian groups precisely because connotes commutativity.
The pair is an infinite abelian group: addition is associative and commutative, the identity is , and the inverse of is . Likewise , , and are abelian groups. By contrast is not a group: the integer has no multiplicative inverse in .
The nonzero rationals form an abelian group under multiplication, with identity and inverse ; likewise and . Zero must be excluded because it has no multiplicative inverse. The pattern is general: for any field —the reader has met , , ; the abstract notion is defined in 4—the nonzero elements form an abelian group under multiplication. Indeed, this is part of the very definition of a field.
Congruence classes furnish the central finite examples. Recall from 2 the set of residue classes and define operations on classes through representatives,
By Proposition 2.21 the right-hand sides do not depend on the representatives chosen, so both operations are well defined, and each law of integer arithmetic—associativity, commutativity, the identities and , negatives—passes to classes by computing on representatives. (The full structural statement, that these operations make a commutative ring, is Theorem 4.6 in 4; the present section uses only the fragments just listed.) Addition makes all of a group, as Example 3.9 below records. For , multiplication does not— has no inverse—but 2 identified exactly which classes are invertible: the units, the classes with (Theorem 2.24). The units form a group.
Under multiplication of classes, the set of units of is an abelian group. Its order is , Euler’s totient of Definition 2.26: the number of integers with and .
Multiplication of classes is associative and commutative with identity , as derived above from Proposition 2.21 by computing on representatives, and is a unit (it is its own inverse). The operation is closed on units: if and are units with inverses and , then has inverse , since for any representatives of the inverse classes. Every unit has an inverse by definition, and that inverse is itself a unit (it is invertible, with inverse the original class). Hence is an abelian group. By Theorem 2.24 its elements are exactly the classes with and , of which there are by Definition 2.26. □
The pair is an abelian group of order : the discussion above derived associativity, commutativity, the identity , and negatives from Proposition 2.21, and the classes number exactly (the least nonnegative residues, Definition 2.22). The invertible classes form the abelian group of order under multiplication (Theorem 2.24 and Proposition 3.8). When is prime, every nonzero class is a unit (Example 2.27), so has order —this is Example 3.7 specialised to , which 4 shows to be a field and denotes .
The one-element set , with its only possible operation , is the trivial group. The group is the smallest nontrivial group. A subtler small example is the Klein four-group , in which every element composed with itself gives and the product of any two distinct nonidentity elements is the third; the verification that this table satisfies the axioms is routine. The group is abelian of order .
Although and both have order , they are structurally different: in every element combined with itself returns the identity, while in the class must be added to itself four times to reach . The language that makes “structurally different” precise is that of isomorphism (§3.8); in its terms, is not isomorphic to , because has no element of order in the sense defined next.
Let be a group and . The order of , written , is the least positive integer with , if such an exists; then has finite order. If no positive power of equals , then has infinite order and one writes .
The word “order” now has two meanings—the order of a group and the order of an element. The clash is deliberate and is reconciled by the cyclic-group theory below: equals the order of the smallest subgroup of containing (Proposition 3.21).
Let have finite order , and let .
if and only if .
if and only if .
The distinct powers of are exactly .
(1) If , write ; then . Conversely, suppose and divide with remainder (Theorem 2.4): with . Then
so is a nonnegative integer smaller than with . Minimality of among positive exponents forces , whence .
(2) We have if and only if (multiply by and use the exponent laws), which by (1) holds if and only if , i.e. (Definition 2.20).
(3) By (2) the powers are pairwise distinct, their exponents being pairwise incongruent modulo ; and every power equals , again by (2). □
The final step of part (1) deserves to be isolated, because it is the recurring device of this section: to show that every witness of some property is a multiple of the least positive witness , take an arbitrary witness , divide with , show that the remainder is itself a witness, and conclude by minimality. It is the same shape as the proof of Bézout’s identity (Theorem 2.11), transplanted from the integers into a group, and it reappears twice below: for the least positive power of lying in a subgroup (Theorem 3.24) and for the least positive element of a subgroup of (Proposition 3.26).
In , read the powers of Definition 3.11 additively: the -fold sum of the class is the class , which is exactly when , so . More generally for any class , by Corollary 3.23 below read additively. In the element has order : its successive powers are
In every nonzero element has infinite order: no nonzero multiple of a nonzero integer is .
A subset of a group is a subgroup, written , if is itself a group under the restriction of to : explicitly, is nonempty, closed under , contains the identity of , and contains whenever it contains . Every group has the trivial subgroup and itself; a subgroup other than is proper.
Two small points keep this definition honest. First, the identity of a subgroup necessarily coincides with the identity of : if satisfies , then cancelling in against (Proposition 3.3(3)) gives . Second, inverses computed in agree with those computed in , by uniqueness of inverses in . Nothing about , in other words, depends on whether we regard it as a group in its own right or as a subset of .
Checking all the group axioms for a subset would be wasteful, since associativity is inherited for free. A single condition suffices.
Let be a group and . Then if and only if
is nonempty, and
for all , the element lies in .
If , then is nonempty and, for , it contains and hence ; both conditions hold.
Conversely, suppose (1) and (2) hold. Pick by (1); taking in (2) gives . For any , taking the pair in (2) gives , so is closed under inverses. Finally, for we now know , and applying (2) to the pair gives , so is closed under the operation. Associativity is inherited from , so is a group. □
For a finite nonempty subset , closure under the operation alone forces . Indeed, given , closure puts all the powers in ; since is finite they cannot all be distinct, so for some , giving . Then : this is a positive power of when , and when we have , whose inverse already lies in . Thus for finite subsets, closure under multiplication is the only condition to verify.
The even integers form a subgroup of : the set is nonempty, and is again even (the subgroup test, written additively). More generally for every , by the same computation—and these are all the subgroups of , as Proposition 3.26 will show.
The intersection of any family of subgroups is a subgroup of .
The identity lies in every , so the intersection is nonempty. If and lie in the intersection, then for each both lie in , so by Proposition 3.15; hence lies in the intersection, and the one-step test applies. □
Proposition 3.18 is what makes “the smallest subgroup containing a given set” well defined: the intersection of all subgroups containing the set is itself a subgroup containing the set, and it is contained in every other one.
For a subset , the subgroup generated by , written , is the intersection of all subgroups of containing . By Proposition 3.18 it is a subgroup, and by construction it is the smallest subgroup of containing .
Concretely, consists of all finite products with and , the empty product being . Indeed, the set of such products contains , contains , and is closed under multiplication (concatenate) and under inversion (reverse the factors and negate the exponents, by the socks–shoes rule), so it is a subgroup containing ; conversely, every subgroup containing is closed under these operations and so contains every such product. Hence the two descriptions coincide.
A group is cyclic if there exists with
such an element is a generator of .
The displayed description matches Definition 3.19: the set contains , and it is closed under products and inverses by the exponent laws, so it is a subgroup containing ; conversely any subgroup containing must contain all its powers. Hence : for a single element , the general generated-subgroup construction and the naive one agree. Every cyclic group is abelian, since .
Let be cyclic.
If has infinite order, the powers are pairwise distinct, so is infinite.
If has finite order , then has exactly elements.
In both cases .
(1) Suppose with ; without loss of generality . Then with , contradicting infinite order. So the powers are pairwise distinct and is infinite.
(2) This is Proposition 3.12(3): the distinct powers of are exactly , and these exhaust . □
The group is infinite cyclic, generated by and also by . The group is cyclic of order , generated by (Example 3.13). The unit group is not cyclic: each of its four elements squares to (, , ), so no element has order . By contrast is cyclic, generated by : its powers run
exhausting the group.
The order of a power of is determined by a gcd, and the formula tells us exactly which powers are again generators.
Let have finite order and let . Then
In particular generates if and only if , so a cyclic group of order has exactly generators.
The subgroups of a cyclic group can be classified completely. The theorem below is used constantly in the sequel; its part (3) is the origin of the “one subgroup per divisor” picture of .
Let be a cyclic group.
Every subgroup of is cyclic.
If is infinite, its subgroups are exactly for ; distinct give distinct subgroups, and for the subgroup is isomorphic to .
If , then for each positive divisor there is exactly one subgroup of of order , namely , and these are all the subgroups of . Subgroups of thus correspond bijectively to positive divisors of .
(1) Let . If , then is cyclic. Otherwise contains some , so ; since also contains , it contains a power of with positive exponent. Let be the least positive integer with (well-ordering, Theorem 2.1). We claim . The inclusion holds by closure. For , take any element of ; it is some , since . Divide with ; then
and minimality of forces —the division-minimality device again. Hence .
(2) Let be infinite. Then has infinite order, for otherwise would be finite by Proposition 3.21(2). By part (1) every subgroup is or with least positive, and conversely each is a subgroup. For distinctness, note that for the positive exponents with are exactly the positive multiples of : the elements of are the powers , and forces because distinct exponents give distinct powers (Proposition 3.21(1)). The least such exponent recovers , so distinct give distinct subgroups, and each differs from because . Finally, for the element has infinite order (if then , so ), so is an infinite cyclic group and is therefore isomorphic to by Theorem 3.43(1) below. No circularity arises: the proof of that theorem uses only Propositions 3.12 and 3.21.
(3) Let , so by Proposition 3.21.
Existence. Let be a positive divisor. Since divides , we have , so Corollary 3.23 gives
and is a subgroup of order by Proposition 3.21.
Uniqueness. Let with . If then , since . Otherwise, as in part (1), for the least positive with , and Propositions 3.12 and 3.21 together with Corollary 3.23 give
In particular divides , say ; then , so . Both sides have exactly elements, so .
All subgroups arise. Any equals some (or ), whose order is a positive divisor of ; by uniqueness . The assignment is therefore surjective onto the set of subgroups, and it is injective because subgroups of different orders are distinct. This is the asserted bijection. □
Specialised to with generator (written additively), Theorem 3.24(3) reads: for each divisor there is exactly one subgroup of order , namely
itself cyclic of order , hence isomorphic to by the classification below. For the six subgroups correspond to the divisors , and inclusion between subgroups mirrors divisibility between the corresponding divisors: the subgroup lattice of is the divisor lattice of , with chains such as , , and .
The classification promised in Example 3.17 now follows; it is Theorem 3.24(2) read additively for , but the direct argument is short enough to give in full.
Every subgroup of has the form for a unique integer .
Let . If , then . Otherwise contains a nonzero integer and, being closed under negation, contains a positive one; let be its least positive element (Theorem 2.1). Closure under addition and negation gives . Conversely, for any , divide with ; then , and minimality of forces , so . Hence . For uniqueness, note is recovered from as its least positive element (and exactly for ), so distinct give distinct subgroups. □
A subgroup slices into translated copies of itself, and counting the slices is the mechanism underlying Lagrange’s theorem: partition the group into blocks, exhibit a bijection between each block and , and multiply the block count by the block size. The blocks are the cosets.
Let and . The left coset of by is
and the right coset is . In additive notation one writes . The set of left cosets is denoted , and the index of in is , the number of left cosets.
Let .
Each lies in ; the left cosets cover .
Two left cosets are either equal or disjoint: if and only if , and otherwise .
Every left coset has the same cardinality as : the map is a bijection from onto .
The same statements hold for right cosets, with as the criterion in (2).
(1) Since , we have .
(2) First suppose the cosets meet: for some . Then . Conversely, suppose , so . Then every element equals , giving ; and since , the same argument with the roles of and exchanged gives . Hence . Combining the two directions: if two cosets share even one element they coincide, so distinct cosets are disjoint.
(3) The map , , is surjective by the definition of and injective by left cancellation (Proposition 3.3(3)): implies . Hence .
For right cosets, the same three arguments apply with sides exchanged; in (2) the criterion becomes . □
Let be a finite group and . Then divides , and
By Lemma 3.28, the distinct left cosets of partition : they cover by part (1) and are pairwise disjoint by part (2). Since is finite there are finitely many of them, say , and each has exactly elements by part (3). Summing the sizes of the blocks of the partition,
Three corollaries follow in quick succession; the third is the theorem this section owes to the rest of the volume.
In a finite group , the order of every element divides .
If is a finite group of order , then for every .
Let . By Corollary 3.30, , say ; then . □
Let and with . Then
In particular, for a prime and not divisible by ,
and holds for all integers .
Apply Corollary 3.31 to the group , which has order (Proposition 3.8). For the class is a unit (Theorem 2.24), so , which is the first congruence. For prime, (Example 2.27), and gives , yielding the second congruence. Multiplying it by gives ; and when both sides are congruent to , so the last congruence holds for all . □
Every group of prime order is cyclic, hence isomorphic to , and has no proper nontrivial subgroups.
Cosets do more than count: for an abelian group they themselves form a group. This single construction underlies the quotient rings of 4 and, through them, and the polynomial quotients used throughout the series; it is all of quotient theory the volume requires.
Let be an abelian group, written additively, and let . The operation
on the coset set is well defined and makes an abelian group—the quotient group of by —with identity and inverse . If is finite, then
The only point of substance is that the operation is well defined: its output is stated in terms of chosen representatives and , and we must check that replacing them by other representatives of the same cosets leaves the result unchanged. Suppose then that and . By Lemma 3.28(2), written additively, this means and . Then
since is closed under addition; applying Lemma 3.28(2) once more, . The operation is well defined. This representative-independence check is the template for every coset-wise construction in the volume; it recurs, in the same words, for quotient-ring multiplication in 4.
The axioms now pass coset-wise from : for associativity,
commutativity follows the same way from commutativity in ; the coset is an identity; and is an inverse of . Hence is an abelian group. When is finite, the number of cosets is by Theorem 3.29—the same partition-into-equal-blocks count as before. □
The construction is not new to this volume in disguise: for and , Definition 2.22 exhibits each residue class as , a coset of , and the coset addition above is exactly addition of classes. The notation , introduced in 2 as a bare name for the set of classes, is thus an instance of the general quotient notation , and is the quotient group in the sense just constructed.
For a non-abelian group the same construction succeeds exactly for those subgroups whose left and right cosets coincide, for all ; these are the normal subgroups. Commutativity makes every subgroup of an abelian group normal, which is why no extra hypothesis was needed in Proposition 3.35. The present volume deliberately needs only the abelian case, and we do not develop the general theory.
Groups are compared through the maps that respect their operations.
Let and be groups. A function is a group homomorphism if
The set of all homomorphisms from to is denoted .
Let be a homomorphism, and write for the identities of and .
.
for all .
for all and .
The image is a subgroup of .
(1) From we get ; cancelling in (Proposition 3.3(3)) gives .
(2) Applying to and using (1),
so is an inverse of ; by uniqueness of inverses, .
(3) For , induct: the case is (1), and . For , write with and combine with (2): .
(4) The image is nonempty, containing . For and in ,
using (2); the one-step subgroup test (Proposition 3.15) concludes. □
The kernel and image of a homomorphism are
For any homomorphism , the kernel is a subgroup, , and is injective if and only if .
The kernel contains by Proposition 3.38(1), so it is nonempty; and for ,
so ; the one-step test gives .
If is injective and , then ; the kernel is trivial. Conversely, suppose and . Then , so , forcing , i.e. . □
Kernels are exactly the subgroups by which one may quotient: for abelian , Proposition 3.35 forms directly, and in general the kernel satisfies the normality condition of Remark 3.36—for and , one computes , so conjugating the kernel by lands back in the kernel, whence .
An isomorphism is a bijective homomorphism ; when one exists, the groups are isomorphic, written . An isomorphism from to itself is an automorphism. An injective homomorphism is a monomorphism; a surjective one is an epimorphism.
The set-theoretic inverse of an isomorphism is an isomorphism, and is an equivalence relation on any collection of groups.
Let be an isomorphism, with inverse function (which exists since is a bijection, Theorem 1.1). For , write and ; then
so is a homomorphism, and it is a bijection; hence an isomorphism. For the equivalence relation: reflexivity is witnessed by the identity automorphism ; symmetry by the inverse just constructed; and transitivity because a composite of homomorphisms is a homomorphism (apply the defining property twice) and a composite of bijections is a bijection. □
Isomorphic groups are “the same group” for every group-theoretic purpose: any property expressible in terms of the operation alone— orders of elements, the lattice of subgroups, commutativity—transfers across an isomorphism. One therefore classifies groups up to isomorphism, and the classification of cyclic groups is the model result of this kind: up to isomorphism there is exactly one cyclic group of each order.
Every cyclic group is isomorphic to exactly one of the following:
the infinite cyclic group , if it is infinite;
the finite cyclic group , if it has order .
In particular, two cyclic groups are isomorphic if and only if they have the same order.
Let and define
The exponent law says exactly that is a homomorphism from to , and is surjective because every element of is a power of .
Case 1: has infinite order. Distinct exponents give distinct powers (Proposition 3.21(1)), so is injective, hence a bijective homomorphism, and .
Case 2: . By Proposition 3.12(1),
Define the induced map
It is well defined: if then , so by Proposition 3.12(2). It is a homomorphism: . It is surjective because is. And it is injective by Proposition 3.40: if , then (Proposition 3.12(1)), so ; the kernel of is trivial. Hence .
Distinctness. Isomorphic groups have equal order, an isomorphism being in particular a bijection. The group is infinite and the groups for have the pairwise distinct finite orders , so no two of the listed groups are isomorphic, and a cyclic group is isomorphic to exactly one of them—the one matching its order. The final claim follows: cyclic groups of equal order are isomorphic to the same listed group, hence to each other (Proposition 3.42), and isomorphic groups have equal order. □
The cheque presented at the head of the section can now be cashed. Fix any finite group and a public element , and let . Associativity makes “ repetitions of ” unambiguous—the element , however bracketed, by generalised associativity (Proposition 3.4)—and the exponent laws give
so the two parties of the opening protocol, each applying a secret repetition count to the other’s published value, really do arrive at a common secret element. Repetition counts obey an arithmetic, not a mere accumulation: by the classification theorem the subgroup is a copy of , so exponents add, negate, and matter only modulo (Proposition 3.12)—the modular arithmetic of 2, transplanted into the exponent. Lagrange’s theorem locates the modulus: divides , and for every (Corollary 3.31); in the unit groups this specialises to Euler’s congruence (Corollary 3.32). Composition and inversion, the first two demands of the opening problem, are thereby supplied in full generality. The third demand—that publishing should hide —is not a theorem of algebra at all: it is a statement about computation, and it fails in some groups (in , recovering from is a single modular division) while appearing to hold in others. Making the demand precise, and building the groups for which it is credible, occupies the sections that follow and the volumes above them.