Number Theory
Division
If m and n are integers where m 0,m divides n if there is an integer k such that
Equivalently is an integer
If m divides n, m is a factor of n and n is a multiple of m
Divisibilty of Integers
If a b and a c then a (b+c)
If a b, then a bc for all integers c
If a c and b c, then a c
Prime
A prime number, p, is a positive integer that has exactly two divisors: p and 1.
Composite
A composite number, c, is a positive integer that has more than two divisors.
Tau Function
The tau function is the total number of positive integer divisors of its input.
Let such that
where is the sum over all divisors of n.
GCD
The greatest common divisor of two integers and , such that at least one is non-zero, is the largest positive integer, such that and .
LCM
The least common multiple of two integers and is the smallest number that is a multiple of both and .
The can be computed by obtaining the prime factorization of and , take the union of the two resulting sets and return the smallest value of the new set..
Coprime
Integers m and n are relatively prime if
Euler's Theorm
If n and m are relatively prime for some m,n
Prime Counting Function
Perfect Number
A perfect number is a positive integer that is twice the value of its positive divisors.
The factors of 6 are 1,2,3,6 and the sum of its factor is
The factores of 28 are 1,2,4,7,14,28 and the sum of its factors is
Triangle Numbers
A triangle number, n, is computed by the sum of the natural numbers 1 to n counts.
Even Perfect numbers are triangular
Let be an even prefect number. is of the form where is prime.
Thus
Perfect and Prime Relationship
Let
Let be prime
Then
Mersenne Prime
A mersenne prime is a prime number of the ofrm where is a prime number.