Prime factorization, the Euclidean algorithm, and counting divisors — the vocabulary every other number theory topic assumes you already know.
Prime factorization
Every integer greater than 1 has a unique prime factorization (the Fundamental Theorem of Arithmetic). Writing n=p1e1p2e2⋯pkek unlocks a clean formula for the number of divisors:
d(n)=(e1+1)(e2+1)⋯(ek+1)
(Add 1 to each exponent because each prime’s power in a divisor can range from 0 toei, giving ei+1 independent choices, then multiply the choices together.)
GCD and LCM
The greatest common divisor and least common multiple of two numbers are always linked by their product:
gcd(a,b)⋅lcm(a,b)=a⋅b
The fastest way to compute a GCD by hand is the Euclidean algorithm, which repeatedly replaces the larger number with the remainder of dividing it by the smaller:
gcd(a,b)=gcd(b,amodb),gcd(a,0)=a
Worked example
Problem: Find gcd(252,105) using the Euclidean algorithm.