Z over nZ - The Integers Modulo n

Let n be a fixed positive integer. Define a relation on Z by:

a∼b⟺n|(b−a)

clearly a∼a,a∼b→b∼a so the relation is trivially reflexive and symmetric. Further work shows it's transitive too, so then ∼ is an equivalence relation, so we can write:

a∼b⇒a≡b(modn)

For any k∈Z we'll denote the equivalence class of a as a―, named the congruence/residue class of a. It consists of the integers from a that by an integral multiple of n (using the relation above), ie:

a―={a+kn|k∈Z}={a,a±n,a±2n,…}

There are precisely n distinct equivalence classes modn, namely:

0―,1―,…,n−1―

determined by the possible remainders after division by n.

ZnZ

The groups ZnZ are the sets of equivalence classes 0―,1―,…,n−1― such that each one describes the integers with remainder of the equivalence class.

Z6Z

There are 6 possible remainders here:

0―,1―,2―,3―,4―,5―

Where, for example, 2―={…,−10,−4,2,8,…}.

A cool thing here is that any element of the equivalence class can represent it. Namely:

⋯=−4―=0―=6―=12―=…

Some Properties

Z6Z

Here:

−2―=−2―=4―1―⋅1―=1―5―⋅5―=25―=1―

Notice that 1―,5― are the only elements with other.

Permutation Group

Consider the Permuation Group. Any finite set X will have perumations:

permuation

A permutation of X is a bijection σ:X→X. It's essentially a shuffling of the elements in X.

X={1,2,3,4,5}

Count the number of bijections σ:X→X. Using principles of proofs, this is the number of injections σ:X→X (since X is finite). Once we know where 1 goes we have 5 options, then for 2 we have 4 options, ... so then we have 5⋅4⋅3⋅2⋅1=5!=120 possibilities.

There are some notational options here (which is where the old-timey modulo notation comes into play):

  1. (Functional Notation:) one permuation is: σ(1)=2,σ(2)=3,σ(3)=5,σ(4)=1,σ(5)=4. This is obviously super slow so we don't want to do this one.
  2. (Modified Functional Notation:) write it instead with →: 1↦2,2↦3,….
  3. (Use A Table:) write where the top row maps to the bottom row:
(1234523514)
  1. ("Cycle Notation":) write out a visual graph of what number maps to where:

We write this as:

σ=(12354)

Another example would be:

τ=(135)(24)

Creates the following:

Here τ has a 3-cycle and a 2-cycle (or a transposition). This τ is a product of disjoint cycles. Notice that since we have a cycle where n≥3 then the group isn't abelian with operation τ.