# Abstract Algebra/Number Theory

As numbers of various number systems form basic units with which one must work when studying abstract algebra, we will now define the natural numbers and the rational integers as well as the basic operations of addition and multiplication. Using these definitions, we will also derive important properties of these number sets and operations. Following this, we will discuss important concepts in number theory; this will lead us to discussion of the properties of the integers modulo *n*.

## The Peano postulates and the natural numbers[edit]

**Definition:** Using the undefined notions "1" and "successor" (denoted by ), we define the set of natural numbers without zero , hereafter referred to simply as the natural numbers, with the following axioms, which we call the Peano postulates:

- Axiom 1.
- Axiom 2.
- Axiom 3.
- Axiom 4.
- Axiom 5.

We can prove theorems for natural numbers using mathematical induction as a consequence of the fifth Peano Postulate.

### Addition[edit]

**Definition:** We recursively define addition for the natural numbers as a composition using two more axioms; the other properties of addition can subsequently be derived from these axioms. We denote addition with the infix operator +.

- Axiom 6.
- Axiom 7.

Axiom 6 above relies on the first Peano postulate (for the existence of 1) as well as the second (for the existence of a successor for every number).

Henceforth, we will assume that proven theorems hold for all in .

### Multiplication[edit]

**Definition:** We similarly define multiplication for the natural numbers recursively, again using two axioms:

- Axiom 8.
- Axiom 9.

### Properties of addition[edit]

We start by proving that addition is associative.

**Theorem 1:** Associativity of addition:

**Proof:** Base case: By axioms 6 and 7, .

- By axiom 6, .
- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 7, .
- By the inductive hypothesis, .
- By axiom 7, .
- By axiom 7, .
- By induction, . QED.

**Lemma 1:**

**Proof:** Base case: 1+1=1+1.

- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 6, .
- By the inductive hypothesis, .
- By theorem 1, .
- By axiom 6, .
- By induction, . QED.

**Theorem 2:** Commutativity of addition:

**Proof:** Base case: By lemma 1, .

- Inductive hypothesis: Suppose that, for , .
- By axiom 6, .
- By theorem 1, .
- By the inductive hypothesis, .
- By theorem 1, .
- By lemma 1, .
- By theorem 1, .
- By axiom 6, .
- By induction, . QED.

**Theorem 3:** .

**Proof:** Base case: Suppose .

- By theorem 2, .
- By axiom 6, .
- By axiom 4, .
- Inductive hypothesis: Suppose that, for , .
- Inductive step: Suppose .
- By axiom 6, .
- By theorem 2, .
- By theorem 1, .
- By the base case, . Thus, .
- By the inductive hypothesis, .
- By induction, . QED.

### Properties of multiplication[edit]

**Theorem 4:** Left-distributivity of multiplication over addition: .

**Proof:** Base case: By axioms 6 and 9, .

- By axiom 8, .
- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 7, .
- By axiom 9, .
- By the inductive hypothesis, .
- By theorem 1, .
- By axiom 9, .
- By induction, . QED.

**Theorem 5:** .

**Proof:** Base case: By axiom 8, 1(1)=1.

- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 6, .
- By theorem 4, .
- By the base case, .
- By the inductive hypothesis, .
- By axiom 6, .
- By induction, . QED.

**Theorem 6:** .

**Proof:** Base case: By axiom 8, .

- By axiom 6, .
- By axiom 8, .
- Inductive hypothesis: Suppose that, , .
- Inductive step: By axiom 9, .
- By the inductive hypothesis, .
- By axiom 6, .
- By theorem 1, .
- By theorem 2, .
- By theorem 1,
- By axiom 9, .
- By theorem 1, .
- By axiom 6, .
- By induction, . QED.

**Theorem 7:** Associativity of multiplication:

**Proof:** Base case: By axiom 8, .

- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 9, .
- By the inductive hypothesis, .
- By theorem 4, .
- By axiom 9, .
- By induction, . QED.

**Theorem 8:** Commutativity of multiplication: .

**Proof:** Base case: By axiom 8 and theorem 5, .

- Inductive hypothesis: Suppose that, for , .
- Inductive step: By axiom 9, .
- By the inductive hypothesis, .
- By theorem 6, .
- By induction, . QED.

**Theorem 9:** Right-distributivity of multiplication over addition: .

**Proof:** By theorems 4 and 7, .

- By theorem 7, . QED.

## The integers[edit]

The set of rational integers can be constructed from ordered pairs of natural numbers (a, b). We define an equivalence relation on the set of all such ordered pairs such that

Then the set of rational integers is the set of all equivalence classes of such ordered pairs. We will denote the equivalence class of which some pair (*a*, *b*) is a member with the notation [(*a*, *b*)]. Then, for any natural numbers *a* and *b*, [(*a*, *b*)] represents a rational integer.

### Integer addition[edit]

**Definition:** We define addition for the integers as follows:

Using this definition and the properties for the natural numbers, one can prove that integer addition is both associative and commutative.

### Integer multiplication[edit]

**Definition:** Multiplication for the integers, like addition, can be defined with a single axiom:

Again, using this definition and the previously-proven properties of natural numbers, it can be shown that integer multiplication is commutative and associative, and furthermore that it is both left- and right-distributive with respect to integer addition.