sums and products
α2 is even if and only if α is even
√2 is irrational (using the well-ordering property)
sum of a rational and an irrational is never rational
sum of two irrationals is not always irrational
product of a rational and an irrational is always an irrational
floor and ceil functions
[2x] + [2y] ≥ [x] + [y] + [x+y] (incomplete)
[x + 1/2] is the integer nearest to x
[(x + n)/m] = [([x] + n)/m] where n, m ∈ Z
Hermite's identity (incomplete)
divisibility
there are [x/d] positive integers that are ≤ x (where x ∈ Z+) and divisible by d
if α|β and α|ε, then α|(mβ + nε)
4n2+4n is divisible by 8 for all n
sum of the cubes of three consecutive integers is divisible by 9
smallest positive linear combination of α and β = gcd(α, β)
every linear combination of α and β is a multiple of gcd(α, β), and vice versa
gcd(α, β) = gcd(β, α mod β); why the euclidean algorithm works
α1|b, α2|b and gcd(α1, α2) = 1 ⇒ α1α2|b
(m, n) = 1 ∧ d|mn ⇒ ∃d1, d2 ∈ Z+ such that d1d2 = d, d1|m, d2|n and (d1, d2) = 1
If a and b are integers, then ax + by = c has infinitely many integral solutions ⟺ (a, b)|c
If a1, a2, ..., an are nonzero positive integers, then the equation a1 x1 + a2 x2 + ... + an xn = c has infinite integral solutions if (a1, a2, ..., an) divides c, otherwise it has no solutions (incomplete)
integer representations
prime numbers
if p is prime and p|αβ, then p|α or p|β
if p is prime and p∤α, then (p, α) = 1
any integer is either a prime or a product of primes
fundamental theorem of arithmetic
if n is composite then there is a prime divisor ≤ √n
all composite integers can be expressed as a product of two coprime integers
there are infinite number of primes
there are infinite primes of the form 4k+3
there are infinite primes of the form 3k+2
if p is a prime ≥ 5, then (p2-1)|24
no prime can be expressed as a4 - b4
for any positive integer n, there are at least n consecutive composite integers
if 2p-1 is prime, then p is prime
if n > 1 and an - 1 is prime, then a=2
if an+1 is an odd prime, then a is even and n is a power of 2
if n2+1 is prime, then n2 = 4k
a powerful number is a product of a square and a cube
any integer greater than 6 can be represented as a sum of two relatively prime integers
if p is prime and p|an then p|a
If the smallest prime p of the positive integer n exceeds n1/3, then n/p must be prime or 1
every integer greater than 11 is the sum of two composite integers
if [2n/3 ≤ p < n] then [p∤2nCn]
p1p2...pt < 4n where pt ≤ n (incomplete)
Bertrand's postulate (incomplete)
If pn is the nth prime, then pn ≤ 2n
every positive integer n ≥ 7 is the sum of disctinct primes (incomplete)
Dirichlet's theorem on arithmetic progressions (incomplete)
root of xn+cn-1xn-1+...+c1x+c0 is either an integer or an irrational
logpb is irrational, where p is prime and b is a positive integer that is not a power of p
every prime divisor of a composite Fermat number Fn is of the form 2n+2k+1 (incomplete)
exactly divides
[pa ∥ m] ∧ [pb ∥ n] ⇒ [pmin(a,b) ∥ m+n]
more gcd
(α, ε) = 1 ∧ (β, ε) = 1 ⇒ (αβ, ε) = 1
(α, β) = 1 ⇒ (αβ, ε) = (α, ε) * (β, ε)
(α, β) = 1 ∧ ε|(α+β) ⇒ (α, ε) = (β, ε) = 1
(α, β) = 1 ∧ αβ = cn ⇒ ∃x, y ∈ Z+ such that α = xn ∧ β = yn
if α is odd, then gcd(α, α-2) = 1
(α1, α2, α3, ..., αn) ⇒ ((α1, α2), α3, ..., αn)
(α, β, ε) = 1 ⇒ (αβ, ε) = (α, ε)(β, ε)
if (x, y) divides (x + y), then there are infinite values of x and y
m * (α1, α2, ...) = (mα1, mα2, ...)
(α, β) = δ ∧ (α, ε) = δ ⇒ (α, β, ε) = δ
(α, β) = (α + kβ, β) where k is any integer
(α, β) = 1 ⇒ (α+β, α-β) is ≤ 2
(α, β) = 1 ⇒ (α2+β2, α+β) is ≤ 2
[(a,b) = (c,d) = 1 ∧ a/b + c/d ∈ Z] ⇒ b = d
6n-1, 6n+1, 6n+2, 6n+3 and 6n+5 are pairwise relatively prime
Lamé's theorem (incomplete)
lcm
a,b ∈ N+ ⇒ [a, b] = cd where c|a, d|b and (c, d) = 1
(a, b) = (a + b, [a, b]) where a, b ∈ Z+
[(a, b), c] = ([a, c], [b, c]) and ([a, b], c) = [(a, c), (b, c)] where a, b, c ∈ Z+
[a, b, c] = abc(a,b,c)/(a,b)(a,c)(b,c) where a, b, c ∈ Z+
[(a, b), (a, c), (b, c)] = ([a, b], [a, c], [b, c]) where a, b, c ∈ Z+
modular arithmetic
(α ≡ β mod M) ∧ (ε ≡ δ mod M) ⇒ (α + ε ≡ β + δ mod M)
(α ≡ β mod M) ∧ (ε ≡ δ mod M) ⇒ (αε ≡ βδ mod M)
(α ≡ β mod M) ∧ (ε ≡ δ mod M) ∧ ε|α ∧ δ|β ⇒ (α/ε ≡ β/δ mod M)
(α ≡ β mod M) ∧ (n|M) ⇒ (α ≡ β mod n)
if c is an odd integer, then (c2 ≡ 1 mod 4) and (c2 ≡ 1 mod 8)
(c ∈ Z) ∧ (α ≡ β mod M) ⇒ (cα ≡ cβ mod cM)
d|α ∧ d|β ∧ d|M ∧ α ≡ β mod M ⇒ (α/d ≡ β/d mod M/d)
(εα ≡ εβ mod M) ⟺ (α ≡ β mod M/(ε, M))
(α ≡ β mod M) ⇒ (β, M) = (α, M)
if (α ≡ β mod M) and (α ≡ β mod N) then (α ≡ β mod [M, N])
if (α ≡ β mod M), (α ≡ β mod N) and gcd(M, N) = 1, then (α ≡ β mod MN)
if n is odd and (3 ∤ n), then (n2 ≡ 1 mod 24)
ax ≡ b mod m has a solution if and only if gcd(a, m)|b
solution of ax ≡ b mod m (if gcd(a, m)|b)
existence and uniqueness of modular inverse if gcd(a, m) = 1
if p is prime ∧ (a2 ≡ b2 mod p) ⇒ a ≡ ±b mod p
if p is prime ∧ (a2 ≡ a mod p^k) ⇒ (a ≡ 0) or (a ≡ 1)
[α ≡ ±1 mod p where p is prime] ⟺ [α is its own inverse] (assume α is positive) (incomplete)
if p is prime ∧ (ap ≡ bp mod p) ∧ (p ∤ a) ∧ (p ∤ b) ⇒ ap ≡ bp mod p2
If (α, n) = 1 then {β, α+β, 2α+β, ..., (n-1)α+β} forms a complete system of residues modulo n
divisibility rules
an integer is divisble by 3 if the sum of its digits is divisible by 3
an integer is divisble by 7 if the alternating sum of blocks of three from is divisible by 7
more congruence
1 + 2 + 3 + ... + (n-1) ≡ 0 mod n if and only if n is odd
12 + 22 + 32 + ... + (n-1)2 ≡ 0 mod n ⇒ n ≡ ±1 mod 6
13 + 23 + 33 + ... + (n-1)3 ≡ 0 mod n ⇒ n is not congruent to 2 mod 4
Let p be prime, then 2(p-3)! ≡ -1 mod p
solution to x2 ≡ -1 mod p if p = 2 or p ≡ 1 mod 4
arithmetic functions
If f is a multiplicative function, then [F(n) = ∑d|n, d>0 f(d)] is also a multiplicative function
The Euler phi function is multiplicative
if n is composite, φ(n) ≤ n - √n
if n is even, then φ(2n) = 2φ(n)