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 is an element of a set , we write . If is not an element of , we write .
Examples:
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 is a subset of a set , written , if every element of also belongs to . Thus
means
For example,
Two sets are equal when each is contained in the other:
This criterion is often the cleanest way to prove equality of sets.
A.3 Basic Set Operations
Given two sets and , their union is
Their intersection is
Their difference is
If the ambient set is fixed, the complement of is
For example, if the ambient set is , then the complement of the even integers is the set of odd integers.
A.4 Empty Set and Universal Set
The empty set, written , contains no elements. It is a subset of every set.
for every set .
A universal set is the ambient set under discussion. In elementary number theory, the universal set is often , , or . The choice matters. For example, the complement of the primes differs depending on whether the ambient set is , , or .
A.5 Cartesian Products
The Cartesian product of and is
Elements of are ordered pairs. Order matters:
if and only if
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
may be studied as triples .
A.6 Relations
A relation on a set is a subset of . If is a relation and , we often write
Important examples include equality, order, divisibility, and congruence.
Divisibility is a relation on . We write
if there exists an integer such that
Congruence modulo is also a relation on . We write
if
A.7 Equivalence Relations
An equivalence relation on a set is a relation satisfying three properties.
Reflexivity:
Symmetry:
Transitivity:
Congruence modulo is the central example:
It is reflexive, symmetric, and transitive. Therefore it partitions into equivalence classes, called residue classes modulo .
A.8 Equivalence Classes
If is an equivalence relation on , the equivalence class of is
For congruence modulo ,
The set of all residue classes modulo is written
This notation is fundamental in modern number theory. It replaces individual integers by their arithmetic behavior modulo .
A.9 Functions
A function assigns to each element exactly one element .
The set is the domain. The set is the codomain. The image of is
A function is injective if
It is surjective if every element of occurs as for some .
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
means that whenever is true, is true.
The statement
means that and are equivalent.
The universal quantifier means “for all.” The existential quantifier means “there exists.”
For example,
says that every integer has a nonnegative square.
The statement
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
is
The negation of
is
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 by contradiction, assume that 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
Consider
No divides , since division by leaves remainder . Hence 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
is
These two statements are logically equivalent.
For example, to prove
one may prove the contrapositive:
If , then
so is odd.
A.14 Mathematical Induction
Mathematical induction proves statements indexed by natural numbers.
To prove for all , prove:
- Base case: is true.
- Inductive step: for every , .
Then holds for all .
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 for all , prove:
- Base case: is true.
- Strong inductive step: if are true, then is true.
Strong induction is especially useful for factorization. To prove that every integer factors into primes, assume all integers from up to factor into primes. If is prime, there is nothing to prove. If with , then both and factor into primes, so 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:
The statement “every nonzero integer has only finitely many divisors” means:
Writing statements in quantified form removes ambiguity. It also clarifies what must be proved and what may be assumed.
A.17 Common Notation
| Symbol | Meaning |
|---|---|
| is an element of | |
| is not an element of | |
| is a subset of | |
| union | |
| intersection | |
| difference | |
| empty set | |
| Cartesian product | |
| for all | |
| there exists | |
| implies | |
| if and only if | |
| not | |
| natural numbers | |
| integers | |
| rational numbers | |
| real numbers | |
| complex numbers |