Skip to content

Appendix

A set is a collection of objects, called its elements. If $x$ is an element of a set $A$, we write $x \in A$. If $x$ is not an element of $A$, we write $x \notin A$.

A.1 Sets

A set is a collection of objects, called its elements. If xx is an element of a set AA, we write xAx \in A. If xx is not an element of AA, we write xAx \notin A.

Examples:

N={1,2,3,} \mathbb{N}=\{1,2,3,\ldots\} Z={,2,1,0,1,2,} \mathbb{Z}=\{\ldots,-2,-1,0,1,2,\ldots\} Q={ab:a,bZ,b0} \mathbb{Q}=\left\{\frac{a}{b}:a,b\in\mathbb{Z}, b\ne 0\right\}

In number theory, sets usually describe domains of arithmetic objects: integers, primes, residue classes, ideals, rational points, or solutions to equations.

A.2 Subsets

A set AA is a subset of a set BB, written ABA \subseteq B, if every element of AA also belongs to BB. Thus

AB A \subseteq B

means

xA    xB. x \in A \implies x \in B.

For example,

NZQR. \mathbb{N} \subseteq \mathbb{Z} \subseteq \mathbb{Q} \subseteq \mathbb{R}.

Two sets are equal when each is contained in the other:

A=BAB and BA. A=B \quad \Longleftrightarrow \quad A\subseteq B \text{ and } B\subseteq A.

This criterion is often the cleanest way to prove equality of sets.

A.3 Basic Set Operations

Given two sets AA and BB, their union is

AB={x:xA or xB}. A\cup B=\{x:x\in A \text{ or } x\in B\}.

Their intersection is

AB={x:xA and xB}. A\cap B=\{x:x\in A \text{ and } x\in B\}.

Their difference is

AB={x:xA and xB}. A\setminus B=\{x:x\in A \text{ and } x\notin B\}.

If the ambient set is fixed, the complement of AA is

Ac={x:xA}. A^c=\{x:x\notin A\}.

For example, if the ambient set is Z\mathbb{Z}, then the complement of the even integers is the set of odd integers.

A.4 Empty Set and Universal Set

The empty set, written \varnothing, contains no elements. It is a subset of every set.

A \varnothing \subseteq A

for every set AA.

A universal set is the ambient set under discussion. In elementary number theory, the universal set is often Z\mathbb{Z}, N\mathbb{N}, or Z/nZ\mathbb{Z}/n\mathbb{Z}. The choice matters. For example, the complement of the primes differs depending on whether the ambient set is N\mathbb{N}, Z\mathbb{Z}, or R\mathbb{R}.

A.5 Cartesian Products

The Cartesian product of AA and BB is

A×B={(a,b):aA, bB}. A\times B=\{(a,b):a\in A,\ b\in B\}.

Elements of A×BA\times B are ordered pairs. Order matters:

(a,b)=(c,d) (a,b)=(c,d)

if and only if

a=candb=d. a=c \quad \text{and} \quad b=d.

Cartesian products appear naturally in number theory when studying pairs of integers, lattice points, congruence systems, and rational points on curves.

For example, solutions to

x2+y2=z2 x^2+y^2=z^2

may be studied as triples (x,y,z)Z3(x,y,z)\in\mathbb{Z}^3.

A.6 Relations

A relation on a set AA is a subset of A×AA\times A. If RR is a relation and (a,b)R(a,b)\in R, we often write

aRb. aRb.

Important examples include equality, order, divisibility, and congruence.

Divisibility is a relation on Z\mathbb{Z}. We write

ab a\mid b

if there exists an integer kk such that

b=ak. b=ak.

Congruence modulo nn is also a relation on Z\mathbb{Z}. We write

ab(modn) a\equiv b \pmod n

if

n(ab). n\mid(a-b).

A.7 Equivalence Relations

An equivalence relation on a set AA is a relation \sim satisfying three properties.

Reflexivity:

aa. a\sim a.

Symmetry:

ab    ba. a\sim b \implies b\sim a.

Transitivity:

ab, bc    ac. a\sim b,\ b\sim c \implies a\sim c.

Congruence modulo nn is the central example:

ab(modn). a\equiv b \pmod n.

It is reflexive, symmetric, and transitive. Therefore it partitions Z\mathbb{Z} into equivalence classes, called residue classes modulo nn.

A.8 Equivalence Classes

If \sim is an equivalence relation on AA, the equivalence class of aAa\in A is

[a]={xA:xa}. [a]=\{x\in A:x\sim a\}.

For congruence modulo nn,

[a]={xZ:xa(modn)}. [a]=\{x\in\mathbb{Z}:x\equiv a\pmod n\}.

The set of all residue classes modulo nn is written

Z/nZ. \mathbb{Z}/n\mathbb{Z}.

This notation is fundamental in modern number theory. It replaces individual integers by their arithmetic behavior modulo nn.

A.9 Functions

A function f:ABf:A\to B assigns to each element aAa\in A exactly one element f(a)Bf(a)\in B.

The set AA is the domain. The set BB is the codomain. The image of ff is

f(A)={f(a):aA}. f(A)=\{f(a):a\in A\}.

A function is injective if

f(a)=f(a)    a=a. f(a)=f(a') \implies a=a'.

It is surjective if every element of BB occurs as f(a)f(a) for some aAa\in A.

It is bijective if it is both injective and surjective.

Bijective functions identify two sets as having the same size or structure.

A.10 Logic and Quantifiers

Mathematical statements are built from propositions using logical connectives.

The statement

P    Q P\implies Q

means that whenever PP is true, QQ is true.

The statement

PQ P\Longleftrightarrow Q

means that PP and QQ are equivalent.

The universal quantifier \forall means “for all.” The existential quantifier \exists means “there exists.”

For example,

nZ,n20 \forall n\in\mathbb{Z},\quad n^2\ge 0

says that every integer has a nonnegative square.

The statement

pNsuch that p is prime \exists p\in\mathbb{N}\quad \text{such that } p \text{ is prime}

says that at least one prime number exists.

A.11 Negation of Quantified Statements

Negating quantified statements is a common source of errors.

The negation of

xA, P(x) \forall x\in A,\ P(x)

is

xA such that ¬P(x). \exists x\in A \text{ such that } \neg P(x).

The negation of

xA such that P(x) \exists x\in A \text{ such that } P(x)

is

xA, ¬P(x). \forall x\in A,\ \neg P(x).

For example, the negation of “every integer is even” is “there exists an integer that is not even.”

It is not “every integer is odd.”

A.12 Proof by Contradiction

To prove a statement PP by contradiction, assume that PP is false and derive an impossibility.

A classical example is Euclid’s proof that there are infinitely many primes. Suppose there are only finitely many primes

p1,p2,,pk. p_1,p_2,\ldots,p_k.

Consider

N=p1p2pk+1. N=p_1p_2\cdots p_k+1.

No pip_i divides NN, since division by pip_i leaves remainder 11. Hence NN has a prime divisor not among the listed primes. This contradicts the assumption that the list contained all primes.

Therefore there are infinitely many primes.

A.13 Proof by Contrapositive

The contrapositive of

P    Q P\implies Q

is

¬Q    ¬P. \neg Q\implies \neg P.

These two statements are logically equivalent.

For example, to prove

n2 even     n even, n^2 \text{ even } \implies n \text{ even},

one may prove the contrapositive:

n odd     n2 odd. n \text{ odd } \implies n^2 \text{ odd}.

If n=2k+1n=2k+1, then

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1, n^2=(2k+1)^2=4k^2+4k+1=2(2k^2+2k)+1,

so n2n^2 is odd.

A.14 Mathematical Induction

Mathematical induction proves statements indexed by natural numbers.

To prove P(n)P(n) for all nn0n\ge n_0, prove:

  1. Base case: P(n0)P(n_0) is true.
  2. Inductive step: for every nn0n\ge n_0, P(n)    P(n+1)P(n)\implies P(n+1).

Then P(n)P(n) holds for all nn0n\ge n_0.

Induction is used throughout number theory: divisibility arguments, recursive sequences, Euclidean algorithm termination, and formulas involving sums or products.

A.15 Strong Induction

Strong induction allows the inductive step to use all earlier cases.

To prove P(n)P(n) for all nn0n\ge n_0, prove:

  1. Base case: P(n0)P(n_0) is true.
  2. Strong inductive step: if P(n0),P(n0+1),,P(n)P(n_0),P(n_0+1),\ldots,P(n) are true, then P(n+1)P(n+1) is true.

Strong induction is especially useful for factorization. To prove that every integer n2n\ge 2 factors into primes, assume all integers from 22 up to n1n-1 factor into primes. If nn is prime, there is nothing to prove. If n=abn=ab with 1<a,b<n1<a,b<n, then both aa and bb factor into primes, so nn does too.

A.16 Logical Precision in Number Theory

Number theory often turns simple-looking statements into precise logical claims.

For example, the statement “there are infinitely many primes” means:

NN, p>N such that p is prime. \forall N\in\mathbb{N},\ \exists p>N \text{ such that } p \text{ is prime}.

The statement “every nonzero integer has only finitely many divisors” means:

nZ, n0    {dZ:dn} is finite. \forall n\in\mathbb{Z},\ n\ne 0 \implies \{d\in\mathbb{Z}:d\mid n\} \text{ is finite}.

Writing statements in quantified form removes ambiguity. It also clarifies what must be proved and what may be assumed.

A.17 Common Notation

SymbolMeaning
xAx\in Axx is an element of AA
xAx\notin Axx is not an element of AA
ABA\subseteq BAA is a subset of BB
ABA\cup Bunion
ABA\cap Bintersection
ABA\setminus Bdifference
\varnothingempty set
A×BA\times BCartesian product
\forallfor all
\existsthere exists
    \impliesimplies
\Longleftrightarrowif and only if
¬P\neg Pnot PP
N\mathbb{N}natural numbers
Z\mathbb{Z}integers
Q\mathbb{Q}rational numbers
R\mathbb{R}real numbers
C\mathbb{C}complex numbers