Notation
[n]: Set of first n natural numbers.
Themes
About Z.
Properties of Numbers
Evenness and odness. Primes and composites. Unique factorization of n as product of primes:
GCD
gcd(x,y).
Euclid’s algorithm
To find gcd(x, y): if
From Euclid’s alg, GCD(x,y)=ax+by. If 1 = ax+by, a
Extended Euclid’s alg
Find a,b using Euclid’s alg.
Diophontine equation
Indeterminate polynomial eqn with integer solutions: eg: gcd(x, y) = ax + by in Euclid’s alg.
Conjectures
Goldbach conjecture:
Primes
Special primes
Marsenne prime: writ as
Prime number theorem
Num of primes under k =
(Green, Tao) Number of arithmatic progressions of primes of length
Primality testing of n
Don’t try to factor: assumed hard.
Randomized primality test
(Miller Rabin) Pick rand x in \(Z^{+}{n} - \set{0}\). If
Picking some prime below N
Pick a random number below n, check if it is a prime: if not prime fail. By Prime number th, this alg has
Special numbers
Square free integers
Aka quadratfrei. Divisible by no perfect square except 1.
Carmichael composite number
Let prime factorization:
Modulo arithmatic
The remainder fn.
Cancellation law
Chinese remainder theorem
Let
Uniqueness
If
Solving for x
Use Extended Euclid’s alg on
Equivalent statements and implications
Utility
Useful for manipulating composite numbers. An airthmatic question mod N reduced to arithmatic questions modulo
Additive group
\(Z^{+_{p}\) A prime order group. Does not have any subgroups.
Multiplicative group
\(Z_{N^{*}\)
Order
N=pq; p, q primes: order = totient function: \(|Z^{*}{N}|=\varphi(N)=(p-1)(q-1)\): we discard multiples of p, q. Also, if \(N= \prod p{i}^{e_{i}}\),
(Euler’s theorem).
So, Fermat’s little theorem: p prime:
Primitive roots
Aka generator. If \(S = Z_{n}^{}\), g is primitive root of n. \(Z_{p}^{}\) for prime p always has primitive root \why. 7 has primitive roots 3, 5.
The number of primitive roots, if there are any, is
Primitive root test
g is primitive root of n iff its multiplicative order is
Quadratic residues
Finding
for odd prime p
As structure of \(Z_{p}^{}\) cyclic; writable as
1 has exactly 2 roots:
Jacobi symbol
Legendre: generalization to n=pq;
for p, q odd primes; n = pq (Blum integer)}
Similarly, for any odd
So, any