COMP0147 but i DFS’d wikipedia too much from the page titled group

0N0 \in \N

General Notes:

Assume the following meanings of symbols unless otherwise specified:
nn is an integer (or natural number).
SS is a set, MM a (algebraic) structure.

When discussing group/ring theory:
GG is a group, RR a ring, HH a subgroup (of GG), NN a normal subgroup (of GG), II an ideal (of RR).
ee is the identity element.

More Abstract Algebra that is definitely in the course

ok but these are actually important to understand so the rest of the course doesn’t feel like magic. to do that, first read the notes on Algebraic Structures

i gave up on effort in this section so theres more iffy and more prose and less vroomular.

Throughout the section, the two ring operations are referred to as addition ++ (abelian) and multiplication \ast (monoidal).
Juxtaposition denotes the group operation or multiplication in rings.

Power Notation:
For a group GG with xGx \in G, operation \ast, and identity ee:
xnxxxundefinedn timesx^n \coloneqq \overbrace{x \ast x \ast \cdots \ast x}^\text{n times},
xn=(xn)1x^{-n} = (x^n)^{-1} (the inverse) for n<0n < 0, and
x0=ex^0 = e.

Observe this is literally how it usually works for “multiplication”, except we don’t care what \ast actually does.

Subgroup

A subset of a group that is a group itself (under the same operations).
A subgroup can partition the group (see cosets below).

Coset

A set {ghhH}\{ g \ast h \mid h \in H \} for a gGg \in G with group operation \ast, notated gHgH or gHg \ast H.

For non-Abelian Groups, that’s specifically a left coset, since gg is on the LHS of the \ast. I.e., a right coset would be Hg={hghH}Hg = \{ h \ast g \mid h \in H \}.

The "(left) cosets of HH" is the set of all (left) cosets: {gHgG}\{ gH \mid g \in G \}. Same for the right cosets.

Coset in CS-terms: mapping the group operation over a subgroup with a constant.

Alternatively, a coset is an equivalence class (see below).

The sets of left and right cosets are either disjoint or identical.

Observe that all cosets are of the same size, equal to that of the subgroup. As such, a group always divides into a whole number of cosets.

Intuitively, for additive and well-ordered groups (e.g., Z\Z), cosets are left or right “shifts” of a subgroup when the group elements are laid out evenly spaced as line.
for H={,6,3,0,3,6,}H = \{ \dots, -6, -3, 0, 3, 6, \dots \} of G=(Z,+)G = (\Z, +), there are two more (HH itself is a coset) unique cosets:
{,5,2,1,4,7,}=H+1\{ \dots, -5, -2, 1, 4, 7, \dots \} = H + 1, and
{,4,1,2,5,8,}=H+2\{ \dots, -4, -1, 2, 5, 8, \dots \} = H + 2.
Note that here H+(a+3n)=H+aH + (a + 3n) = H + a, and since ++ is commutative, n+H=H+nn + H = H + n.

Cosets also exist for Rings, formed from Ideals (!not subrings!) (see below).

Index (of Subgroup)

The number of left cosets of a subgroup HH of GG, denoted [G:H][G:H] or G:H|G:H|.

Observe that [G:H]=G/H [G:H] = |G/H| \space (if HH is normal and forms quotient group G/HG/H).

Normal Subgroup

the usual definition is “subgroup that is invariant under conjugation” where conjugation is some forward-backward application of the group operation that is definitely not category theory all over again…
but ugh, a better, equivalent def:

A subgroup whose left and right cosets are the identical; or
A congruence class of the identity element (for some congruence relation).

obviously observable from the first definition, all subgroups of abelian groups are normal

A normal subgroup NN of GG is notated NGN \lhd G

Quotient Group

A group over cosets (of a normal subgroup).

Normal subgroups are the only subgroups whose cosets form a quotient group.
As such, quotient groups are notated as G/NG / N.

How does the group operation work when the elements are (co)sets, you ask?
For cosets aHaH and bHbH, aHbH=(ab)HaH \ast bH = (a \ast b)H (and commutativity carries over from \ast on GG).

Symmetric Group

A symmetric group (over a set SS) is a group of all bijections f:SSf : S \mapsto S under \circ (function composition).

(I.e., for finite set SS,) A group over the permutations (of SS).
SnS_n denotes the symmetric group for S=n|S| = n.

Each SnS_n is unique (in that the actual contents of SS is irrelevant) because the permutations themselves only depend on the cardinality, nn. (i do not smell category theory here)

Subring

What a Subgroup is to a Group.

A subset of a ring that is a ring itself.

Ideal

What a Normal Subgroup is to a Group (at least in the mechanism of forming Quotient Rings).

(although it is not a subring, but)
An additive subgroup that is also closed under multiplication with the entire ring.

In non-commutative rings, an ideal is left-, right-, or both (two-sided-) depending on which handedness of multiplication is closed.

I.e., a Left Ideal II of RR obeys rR,xI:rxI\forall r \in R, x \in I : r \ast x \in I. A right ideal would have xrx \ast r instead of rxr \ast x.

R/IR/I is quotient ring, similar to G/NG/N for groups.

Order

(of a finite structure,) The number of elements its the carrier set, written M|M|.
(of an element xx of a group,) The least (positive) nn such that xn=ex^n = e.

Generated (Sub)structure

A substructure (subgroup, ideal) that is constructed from one (or more) element via repeated application of the structure’s operation(s).

Commonly notated a\braket{a} for a substructure generated from one element aa, called a generator,
or S\braket{S} for a subset SS, called a generating subset.

For a GG with group operation \ast and SG,n=SS \subseteq G, n = |S|:
S={s1k1s2k2snknk1,,knZ} . \braket{S} = \{ s_1^{k_1} \ast s_2^{k_2} \ast \cdots \ast s_n^{k_n} \mid k_1, \dots, k_n \in \Z\} \ .

(See beginning of section for power notation.)

A cyclic subgroup is a subgroup generatable from a single element.
A cyclic group is a group generatable from a single element.

I.e, g={,g1,g0,g1,}\braket{g} = \{ \dots, g^{-1}, g^0, g^1, \dots \} is a cyclic subgroup for gGg \in G.

Observe that cyclic (sub)groups of finite order are, well, “cyclic” – repeated applications of the group operation to any element will eventually return to itself.
Similarly, finite cyclic (sub)groups are naturally isomorphic to (Z,+)/nZ(\Z, +) / n\Z, or modular addition.

However, cyclic (sub)groups of infinite order (e.g., (Z,+)(\Z, +)) are, obviously, not “cyclic”. Thus, they are often less confusingly called monogenous groups.

(Z,+)(\Z, +) is a monogenous group because it can be generated from 11, using repeated addition (and inversion to obtain 1-1): {,1+1,1,1+1,}\{ \dots, 1 + -1, 1, 1 + 1, \dots \}. (Z,+)(\Z, +)'s only other generator is 1-1.

How ideals are generated: (similar to cosets for the 1-element case, otherwise a set of “linear combinations”)
a={rarR}\braket{a} = \{ r \ast a \mid r \in R \};
{a,b}={ra+sbr,sR}\braket{\{a, b\}} = \{ r \ast a + s \ast b \mid r, s \in R \}, etc.
The two-element case links to Bézout’s Identity under a PID.

Principal (Ideal)

An ideal generatable from a single element.
Principal Ideals also have left-/right- ness in non-commutative rings just like Ideals.

E.g., a left principal ideal, generated by an aRa \in R, is Ra={rarR}Ra = \{ r \ast a \mid r \in R \}.

Integral Domain

A Commutative Ring where x0,y0:xy0\forall x \not = 0, y \not = 0 : x \ast y \not = 0.
Alternatively, ab=0    a=0b=0a \ast b = 0 \implies a = 0 \lor b = 0, for an unique 00.

0 is a zero divisor; the above formulas describe the absence of any non-0 zero divisors.

Principal Ideal Domain (PID)

An Integral Domain where all Ideals are principal.

Here, all generated ideals can be generated from a single element (a “GCD”).

Aka. Principal Ring.

Other Things

Lagrange’s Theorem

G=[G:H]H|G| = [G:H] \cdot |H|.
I.e., H|H| divides G|G|.

It follows that gG=e g^{|G|} = e \space (for any gGg \in G).
And so, g|g| divides G|G|.

Permutations

A permutation of an SS is a bijective function σ:SS\sigma : S \mapsto S.

The identity (i.e., “do-nothing”) permutation can be notated Id\text{Id}.
The inverse of a σ\sigma is notated σ1\sigma^{-1} where
σσ1=σ1σ=Id\sigma\sigma^{-1} = \sigma^{-1}\sigma = \text{Id}.

The set of all permutations of an SS, SnS_n, is a symmetric group under function composition. (Observe that composing permutations is simply sequential application.)
Sn=n!|S_n| = n! where S=n|S| = n.

Note that, like function composition, sequential permutations are not generally commutative.

Cycle

A permutation that permutes (a subset of) elements cyclically (while leaving all else fixed).
Length is the number of (distinct) elements in a cycle.

Two cycles are disjoint if they do not permute any common elements.
Disjoint cycles are commutative.

Any permutation σ\sigma can be decomposed into a set of disjoint cycles, the orbits of its cyclic group σ\braket{\sigma}.

Order

The length of a cycle; or, for any permutation σ\sigma in general,
the least (positive) nn such that σn=Id\sigma^n = \text{Id}.

Observe that the composition of nn disjoint cycles with lengths l1,l2,,lnl_1, l_2, \dots, l_n has order lcm(l1,l2,,ln)\text{lcm}(l_1, l_2, \dots, l_n)

Transposition

A 2-cycle (of a permutation), i.e., “swapping” between two elements.

Any permutation can also be decomposed into a composition of transpositions.

Fixed-Point

A 1-cycle.
An element is fixed if it is a fixed-point.

Notation

Two-line

A matrix-ish form, where elements map from the first row to the second.

E.g., for a σS5\sigma \in S_5 that transposes 1, 2 and cycles 3, 4, 5:

σ=(1234521534) \sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 2 & 1 & 5 & 3 &4 \\ \end{pmatrix}

One-line

Two-line but the first line is implicit (omitted) and assumed to be in sorted ascending order.

This of course is only possible if an implicit “natural order” for SS exists.

E.g., the example above would be σ=(2,1,5,3,4)\sigma = (2, 1, 5, 3, 4), or even as σ=21534\sigma = 2 1 5 3 4 (with commas between numbers if ambiguous).

To avoid ambiguity with Cycle notation, the parentheses are often omitted here.

Cycle

Alternative representation as a composition of (usually disjoint) cycles.

One cycle is written as a listing of an orbit between parenthesis.
E.g., (235)(235) for (1234513542)\Big( \begin{smallmatrix} 1 & 2 & 3 & 4 & 5 \\ 1 & 3 & 5 & 4 & 2 \end{smallmatrix} \Big).

I.e., for a cycle (a1 a2  an)(a_1 ~ a_2 ~ \dots ~ a_n),  akak+1\ a_k \mapsto a_{k+1}. (And the last element wraps to the front.)

Composition of multiple cycles usually just uses juxtaposition.
1-cycles are usually omitted when unambiguous.
E.g., for example from two-line notation with two cycles τ=(12)\tau= (12) and υ=(543)\upsilon = (543), together σ=τυ\sigma = \tau \upsilon is written σ=(12)(543)\sigma = (12)(543).

Canonical

Some (subjective) conventions of (most commonly) disjoint cycle notation.
Usual notations are a combination of writing cycles with the largest/smallest element first, ordering cycles by length, and explicitly writing 1-cycles.

Parity / Sign

Parity

The (parity of the) number of transpositions when a permutation is expressed as a composition thereof.

While translations of a permutation into transpositions are generally not unique, all translations for a given permutation have the same parity.

An alternative metric is inversions / disorders – ordered pairs (x,y)(x, y) where (x>y)(σ(y)<σ(x))\big( x > y \big) \land \big( \sigma(y) < \sigma(x) \big).
# transpositions ≤ # inversions, but their parity is always the same.

As a shortcut, a nn-cycle decomposes into n1n-1 transpositions.

Sign

Another metric for parity; ++ for even parity; - for odd, commonly denoted as the function sgn:Sn{+1,1}\text{sgn} : S_n \mapsto \{ +1, -1 \}.

Obviously,
sgn(Id)=+1\text{sgn}(\text{Id}) = +1;
sgn(στ)=sgn(σ)sgn(τ)\text{sgn}(\sigma \tau) = \text{sgn}(\sigma) \cdot \text{sgn}(\tau).

Conversion

A permutation of SS can be converted to a set of disjoint cycles by tracing out the orbitals of all elements of SS.
I.e.,

  1. initialize your fast memory storage device to store the set of cycles
  2. repeat until no unpicked elements left:
    2.1. pick arbitrary element not already in a cycle
    2.2. trace out its orbital
    2.3. add this to your fast memory storage

An nn-cycle can be converted to a composition of n1n-1 transpositions by decomposing into adjacent transpositions:
(a1 a2  an)=(a1 a2)(a2 a3)(an1 an)(a_1 ~ a_2 ~ \dots ~ a_n) = (a_1 ~ a_2)(a_2 ~ a_3) \cdots (a_{n-1} ~ a_n), or, equivalently,
(a1 a2  an)=(a1 an)(a1 an1)(a1 a2)(a_1 ~ a_2 ~ \dots ~ a_n) = (a_1 ~ a_n)(a_1 ~ a_{n-1}) \cdots (a_1 ~ a_2).

Conversion Method
One-line ⟶ Cycles trace orbits
Cycles ⟶ One-line apply to Id\text{Id}
Cycle ⟶ Transpositions decompose adjacents
Transpositions ⟶ Cycles ⟶ one-line ⟶ cycles
One-line ⟶ Transpositions ⟶ cycles ⟶ transpositions
Transpositions ⟶ One-line apply to Id\text{Id}

(Binary) Relations

An nn-ary relation determines whether some “relationship” holds for any nn-tuple of inputs.

Relations are equivalent to predicates, and boolean functions, and a lot of other things.
While relations are more intuitively understood as predicates, their definition is set-theoretic:

An nn-ary relation RR (over domain sets S1,S2,,SnS_1, S_2, \dots, S_n) is the set of all so-related nn-tuples:
R{rS1××Snr satisfies the relation} . R \subseteq \{ r \in S_1 \times \cdots \times S_n \mid r \text{ satisfies the relation} \} \ .

Binary Relation
A, well, binary (two-argument) relation.
Homogeneous Relation
An nn-ary relation where S1=S2==SnS_1 = S_2 = \cdots = S_n, i.e., all inputs are of the same domain.

E.g., a binary homogeneous relation over SS is
R{(x,y)x,yS} R \subseteq \{ (x, y) \mid x, y \in S \}

Notation

As per the set-theoretic definition, we naturally have
(x,y)R(x, y) \in R
for (x,y)(x, y) satisfying RR.

Specialized, shorter notation include:

Equivalence & Congruence

Equivalence Relation
A binary relation that is reflexive, transitive, and symmetric.
Congruence Relation
An equivalence relation (on an algebraic structure) that is “compatible” with the structure’s operation(s).
I.e., results of operations done on congruent elements must be congruent.

A more concrete illustration for a binary operator \ast and a congruence relation \sim:
a,b,x,y:((xa)(yb)    (xy)(ab))\forall a, b, x, y : \big( (x \sim a) \land (y \sim b) \implies (x \ast y) \sim (a \ast b) \big) .
This is important for the properties of congruence classes (see below).

Note that “equality”, or the usual meaning of the symbol ==, is a specific (the most common) example of a equivalence relation.
Similarly, “equality mod m”, the usual meaning of \equiv under modular integer arithmetic, is an example of a congruence relation.

Equivalence & Congruence Classes

Equivalence Class

A coset, or
An exhaustive subset of mutually-equivalent elements.

A “representative” member is usually chosen for an equivalence class.
The equivalence class of a representative aSa \in S (under a ==) is notated [a][a] or [a]=[a]_=, and
[a]{xSx=a} . [a] \coloneqq \{ x \in S \mid x = a \} \ .

The set of all equivalence classes of SS (under ==) is called the quotient set, notated S/ ⁣=S/\!=. Note that this is a specific partition of SS.

Observe that when the SS forms a group, this is another way to define quotient groups (see above).
Even the // notation is analogous (the “denominator” can be either a subgroup or an equivalence relation).

Congruence Class

Everything is the same as equivalence classes, except the set is associated with operations that make it a structure.

Residue Class is a synonym when discussing modular arithmetic.

The partition of a structure by a congruence relation has similar “quotient” names, specific to the exact type of structure: e.g., quotient ring and quotient group.

Congruence classes are exactly cosets, and [e][e]_\sim, the congruence class of a group’s identity element, is a subgroup.

The congruence/residue class of an aZa \in \Z under modulo mm is notated [a]m[a]_m or (amod  m)(a \mod m), and
[a]m{xZx=a+km} [a]_m \coloneqq \{ x \in \Z \mid x = a + km \}

where kZk \in \Z.

Modular Arithmetic

Modular arithmetic from an abstract-algebraic view.

NOW you should see that all modular arithmetic are just quotient rings (of Z\Z)!
For a quotient ring Z/ ⁣a\Z / \!\braket{a}, where a\braket{a} is the ideal generated from aa, aa is precisely the modulo of the equivalent modular arithmetic.

The quotient rings of Z\Z also satisfy the inverse axiom for multiplication for free, so modular arithmetic are Fields and can do division.

Group Ring-theoretic Foundation

First, note that Z\Z is obviously a ring under the usual addition and multiplication.
Now trust me bro everything else are just quotient rings.

nZn\Z denotes the principal ideal (of the Z\Z-ring) generated from nn. I.e., nZ=nn\Z = \braket{n}.
As such, Z/nZ\Z / n\Z is a quotient ring, namely, residue classes under modulo nn.

Observe that I=nI = \braket{n} of nn in a Z\Z-ring is more concretely {k×nkZ}\{ k \times n \mid k \in \Z \} – all multiples of nn, or the residue class [0]n[0]_n.
Then, the cosets of II are obviously I+1I + 1 ([1]n[1]_n), I+2I + 2 ([2]n[2]_n), etc.
OBVIOUSLY, this is just {[0]n,[1]n,,[n1]n}\{ [0]_n, [1]_n, \dots, [n-1]_n \}, or the set of residue classes modulo nn.

Z/nZ\Z / n\Z is therefore modular arithmetic modulo nn.

To explicitly notate addition and multiplication as their modular variants, use \oplus and \otimes.

Modulo Addition Group

(Z/nZ)+(\Z / n\Z)^+ denotes the additive group of integers modulo nn.

Unlike below, we get this group “for free” because Z/nZ\Z / n\Z is a ring, so its additive substructure is naturally an additive group.

Modulo Multiplication Group

(Z/nZ)×(\Z / n\Z)^\times denotes the multiplicative group of integers modulo nn.
However, it is not (always) Z/ ⁣n\Z / \!\braket{n} under modular multiplication, as a ring’s multiplicative substructure is only a monoid.

To make “(Z/nZ)×(\Z / n\Z)^\times” a group under multiplication, we just have to make sure all elements have inverses. (the other axioms are satisfied as it is a monoid, coming from a ring)
Turns out1, only elements coprime with nn have inverses.
(Note that [0]n[0]_n is not coprime with anything, and obviously doesn’t have an inverse.)
So,

(Z/nZ)×={[a]ngcd(a,n)=1}(\Z / n\Z)^\times = \{ [a]_n \mid \text{gcd}(a, n) = 1 \}

and (Z/nZ)×=ϕ(n)\big| (\Z / n\Z)^\times \big| = \phi(n)
The group is Abelian because i said so.

(Z/nZ)×(\Z / n\Z)^\times is cyclic iff nn is 11, 22, 44, pkp^k, or 2pk2 p^k (pp is a prime).
In this case, a generator element gg is also called a primitive root modulo nn.

(Z/nZ)×(\Z / n\Z)^\times is isomorphic to (Z/(n1)Z)+(\Z / (n-1)\Z)^+ when nn is prime, obviously.

Modular Arithmetic Field

inshallah you see now that Z/nZ\Z / n\Z is a field (under \oplus and \otimes) when nn is prime.

Other Stuffs

Euler’s Totient Function ϕ\phi

ϕ(n)={x[1,n)gcd(x,n)=1}\phi(n) = \big| \{ x \in [1,n) \mid \text{gcd}(x, n) = 1 \} \big|,
the count of whole numbers less than and coprime with nn.

Alternatively,
ϕ(n)=piki1(pi1)\phi(n) = \prod p_i^{k_i-1}(p_i-1)

for n=pikin = \prod p_i^{k_i}, its prime factorization.

Still,
ϕ(n)=npn(1p1)\phi(n) = n \prod_{p | n} \big( 1 - p^{-1} \big)

for primes pp.

See also, Carmichael function.

Euclidean Algorithm

Iterative algorithm to compute gcd\text{gcd}

Tricks

Fast Modular Exponentiation

If the modulo multiplication group is cyclic, then obviously our life would be much easier (as we can directly decompose powers).

abmod  m a^b \mod m

gcd(a,m)=1\mathbf{\text{gcd}(a, m) =1}:
ababmod  ϕ(m)mod  ma^b \equiv a^{b \mod \phi(m)} \mod m

Useful for bmb \gg m.
Alternatively, eg., when b<ϕ(m)b < \phi(m),
the power can be safely decomposed (to use exponentiation by squaring or other factoring methods).

gcd(a,m)=g\mathbf{\text{gcd}(a, m) = g}:

ur cooked bro

for d=a/gd = a / g and f=m/gf = m / g,
abmod  mgbdbmod  mg(gb1dbmod  f)mod  m \begin{align*} a^b \mod m \\ g^b \cdot d^b \mod m \\ g \cdot (g^{b-1} \cdot d^b \mod f) \mod m \end{align*}

idk

Linear Algebra

help, i can’t deal with actual numbers.


  1. the reasoning is actually the same as that of 0: zero-divisors do not have inverses, and for an element xx, unless gcd(x,n)=1\text{gcd}(x, n) = 1, there exists a k0k \not = 0 such that x×k0mod  nx \times k \equiv 0 \mod n, making xx a zero divisor!

    Now, in division rings, 00 itself is special-cased as the one unique zero-divisor allowed… but groups do not have this allowance so we can’t even have 0 itself in multiplicative groups.

    ↩︎