Arithmetic modulo m
1
The integers modulo m
From the CT we now know that the there are exactly m congruence classes modulo m: namely, [0]m , [1]m , . . . , [m
1]m . Lets give this set a name.
Denition
The Prime Numbers
Before starting our study of primes, we record the following important
lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) =
1.
Lemma (Euclids Lemma). If gc
Modular Exponentiation
What is the fastest way to compute a large integer power of a number modulo
m?
For instance, suppose I want to compute 460 mod 69. One way to do this
is to just compute 460 in Z
Linear Diophantine Equations
A diophantine equation is any equation in which the solutions are restricted
to integers.
The word diophantine is derived from the name of the ancient Greek mathematician
Linear Congruences
In ordinary algebra, an equation of the form ax = b (where a and b are
given real numbers) is called a linear equation, and its solution x = b/a is
obtained by multiplying both side
Functions and Cardinality of Sets
Real-valued functions of a real variable are familiar already from basic
(pre)calculus. Here we consider functions from a more general perspective,
in which variables
Fun with the Fundamental Theorem of Arithmetic
1
Divisibility
1.1
Useful notation
Denition. Given an integer with n = 0 and a prime p, the valuation of n at p, denoted vp (n), is the power
to which p
Eulers Phi Function
An arithmetic function is any function dened on the set of positive integers.
Denition. An arithmetic function f is called multiplicative if f (mn) =
f (m)f (n) whenever m, n are r
The Euclidean Algorithm
The Euclidean algorithm is one of the oldest known algorithms (it appears
in Euclids Elements) yet it is also one of the most important, even today.
Not only is it fundamental
Division algorithm and base-b representation
1
Division algorithm
1.1
An algorithm that was a theorem
Another application of the well-ordering property is the division algorithm.
Theorem (The Division
Discrete Logarithms
Lets begin by recalling the denitions and a theorem. Let m be a given
modulus. Then the nite set
Z/mZ = cfw_[0], [1], . . . , [m 1] = cfw_0, 1, . . . , m 1
of residue classes modul
Divisibility Tests
Everyone already knows certain divisibility tests. For instance, a number
(written in base-10 notation) is divisible by 10 i its last digit is a 0, divisible
by 100 i its last two d
Congruences
1
The congruence relation
The notion of congruence modulo m was invented by Karl Friedrich Gauss, and does much to simplify
arguments about divisibility.
Denition. Let a, b, m Z, with m >
Lecture 1: Propositions and logical connectives
One of the stated objectives of the course is to teach students how to understand and fashion mathematical
arguments. Essential to and characteristic of