Number Theory & Modular Arithmetic
16 free calculators with step-by-step solutions.
Number theory studies the whole numbers: which are prime, how they factor and how remainders behave. These calculators check primes and list them with a sieve, find the GCF and LCM of several numbers, list factors and divisors, compute Euler’s totient, apply divisibility rules and classify perfect numbers. Modular tools cover inverses, fast exponentiation, the extended Euclidean algorithm and the Chinese remainder theorem, the building blocks of RSA cryptography. Each result shows the method, so you can follow the reasoning and check homework.
Most popular in Number Theory & Modular Arithmetic
- Prime Number CheckerCheck whether a number is prime, find its smallest factor and prime factorization, and see the next and previous prime.
- GCF Calculator (Greatest Common Factor)Find the greatest common factor of two or more numbers with Euclid’s algorithm and prime factorizations, plus the LCM.
- LCM Calculator (Least Common Multiple)Find the least common multiple of two or more numbers using prime factorization, with the GCF and a step-by-step table.
- Factors CalculatorList all factors of a number, with factor pairs, the factor count, the sum of factors and the prime factorization.
- Fibonacci Number CalculatorFind the nth Fibonacci number exactly up to n = 1000, with the running sum, digit count and golden-ratio convergence.
All 16 calculators, A to Z
All categories and calculators →- Chinese Remainder Theorem CalculatorSolve a system of congruences x ≡ a (mod m) with pairwise coprime moduli and get the smallest solution and general form.
- Collatz Conjecture CalculatorGenerate the Collatz (3n + 1) sequence for any start number, with the number of steps, the peak value and the full path.
- Digital Root CalculatorFind the digital root of a number by repeatedly adding its digits, with the additive persistence and the mod 9 shortcut.
- Divisibility Rules CalculatorTest whether a number is divisible by 2, 3, 4, 5, 6, 8, 9, 10 and 11, with the digit-sum rule shown for each test.
- Euler’s Totient Function CalculatorCalculate Euler’s φ(n), the count of numbers up to n that are coprime to n, with the product formula worked out.
- Extended Euclidean Algorithm CalculatorFind GCD(a, b) and the Bézout coefficients x and y with a·x + b·y = GCD, with every division step listed.
- Factors CalculatorList all factors of a number, with factor pairs, the factor count, the sum of factors and the prime factorization.
- Fibonacci Number CalculatorFind the nth Fibonacci number exactly up to n = 1000, with the running sum, digit count and golden-ratio convergence.
- GCF Calculator (Greatest Common Factor)Find the greatest common factor of two or more numbers with Euclid’s algorithm and prime factorizations, plus the LCM.
- LCM Calculator (Least Common Multiple)Find the least common multiple of two or more numbers using prime factorization, with the GCF and a step-by-step table.
- Modular Exponentiation CalculatorCompute b^e mod m quickly with square-and-multiply, even for huge exponents, and see each squaring step.
- Modular Inverse CalculatorFind the modular multiplicative inverse of a number a modulo m with the extended Euclidean algorithm and a check.
- Nth Prime Number CalculatorFind the nth prime number, for example the 1000th prime, with the neighbouring primes and the n(ln n + ln ln n) estimate.
- Perfect, Abundant and Deficient Number CalculatorClassify a number as perfect, abundant or deficient from the sum of its proper divisors, with the full divisor list.
- Prime Number CheckerCheck whether a number is prime, find its smallest factor and prime factorization, and see the next and previous prime.
- Prime Numbers List CalculatorList every prime number in a range up to 2,000,000 using the Sieve of Eratosthenes, with the count, sum and largest gap.