Number Theory Calculators
Last updated: October 2026
Pythagorean Triples Generator
Counts the Pythagorean triples (a, b, c) with a² + b² = c² and hypotenuse c up to a chosen limit: all of them, only the primitive ones, or only their multiples.
Quadratic Residue Calculator
Determine whether an integer a is a quadratic residue modulo a prime p, and compute the Legendre symbol (a/p).
Prime Number Checker
Instantly determine whether any positive integer is a prime number.
Perfect Number Analyzer
Check whether a number is perfect, abundant, or deficient by comparing it to the sum of its proper divisors.
Divisor Count Calculator
Count exactly how many divisors a positive integer has, including 1 and itself.
Binary to Decimal Converter
Convert any binary (base-2) number to its decimal (base-10) equivalent in one click.
Fibonacci Sequence Calculator
Generates Fibonacci sequences with custom starting values and finds the nth term, the sum of the first N terms, or the ratio of consecutive terms that approaches the golden ratio.
Linear Diophantine Equation Solver
Finds all integer solutions to a linear Diophantine equation of the form ax + by = c.
Divisibility Test Calculator
Test whether a specific number is divisible by a chosen divisor, or count all divisors up to a custom limit.
Modular Arithmetic Calculator
Computes a mod m, modular exponentiation aᵇ mod m, the modular inverse a⁻¹ mod m and modular addition (a + b) mod m, always as a non-negative residue.
Collatz Conjecture Analyzer
Trace the Collatz sequence from any starting integer — halving evens and applying 3n+1 to odds — and count the steps it takes to reach 1 (the total stopping time) for the famous unsolved 3n+1 problem.
Pascal's Triangle Calculator
Generate rows of Pascal's triangle or look up any individual binomial coefficient C(n, k).
Prime Gap Analyzer
Scans a user-defined range of integers, identifies all primes, and computes the gaps between consecutive primes including maximum, minimum, and average gap.
Factorial Calculator
Calculates n!, the product of all whole numbers from 1 to n, for n from 0 to 169, and explains how factorials count arrangements and combinations.