Skip to content
Calculator Tools

Math · 10 calculators

Number Theory Calculators

Primes, factorisation, GCD and LCM, divisors, Fibonacci numbers, perfect numbers and modular arithmetic.

Key number theory formulas

Prime Number CheckerA prime has exactly two divisors: 1 and itself
Prime Factorizationn = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ
GCD / HCFEuclid: GCD(a, b) = GCD(b, a mod b), GCD(a, 0) = a
LCMLCM(a, b) = |a × b| ÷ GCD(a, b)
Factorsd is a factor of n if n ÷ d leaves no remainder
FibonacciF(0) = 0, F(1) = 1, F(n) = F(n−1) + F(n−2)
Perfect Number CheckerPerfect: σ(n) − n = n
Even or Odd CheckerEven if n mod 2 = 0, otherwise odd
Modular Arithmeticaᵇ mod m via square-and-multiply · a⁻¹: a·x ≡ 1 (mod m)
RemainderDividend = Divisor × Quotient + Remainder

Number Theory questions

Is 1 a prime number?

No. A prime must have exactly two distinct divisors; 1 has only one.

How do you find prime factors?

Divide by the smallest prime (2) as many times as possible, then 3, 5, 7 and so on until the quotient is 1. 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5.

Are GCD, HCF and GCF the same thing?

Yes. Greatest common divisor, highest common factor and greatest common factor are three names for the largest whole number that divides every number in the set.

What is the LCM used for?

The LCM is the smallest number that all given numbers divide into. It is used to find common denominators when adding fractions and to solve scheduling problems (when will two cycles line up again).

How is Fibonacci related to the golden ratio?

The ratio of consecutive Fibonacci numbers F(n+1)/F(n) approaches the golden ratio φ ≈ 1.618 as n grows.