EXPLORE · EXPERIMENT · DISCOVER

Try the math.
See it work.

Twelve interactive tools. Change the inputs, investigate patterns, and see the mathematics behind each answer.

THE MATH LAB

Pick a tool and experiment.

Every tool below opens a real interactive calculator or simulation.

GCDExtended Euclid Integer equationsModular inverse BinomialLaw of Large Numbers Euler φModular powersCRTQuadratic residuesNormal CDFCLT simulator
Number Theory / Tool 01

Euclidean Algorithm Explorer

Find the GCD and a pair of Bézout coefficients for two positive integers.

Step-by-step

Try 252 and 105, or enter any positive integers up to 1,000,000,000.

Number Theory / Tool 02

Extended Euclidean Algorithm

Track the remainders and Bézout coefficients to construct integers x, y satisfying ax + by = gcd(a, b).

Coefficient table

Try 240, 46 to see 240(−9) + 46(47) = 2. Negative integers and zero are supported (except a = b = 0).

Number Theory / Tool 03

Linear Diophantine Equation Solver

Solve ax + by = c over the integers. Find a particular solution, then describe every integer solution using a parameter t.

All solutions

The equation has integer solutions precisely when gcd(a,b) divides c, with a special case when a=b=0.

Number Theory / Tool 04

Modular Inverse Calculator

Find x such that ax ≡ 1 (mod m), or see why no inverse exists.

Extended Euclid

The inverse exists exactly when gcd(a, m) = 1. Modulus must be at least 2.

Probability / Tool 05

Binomial Distribution Explorer

Move the sliders to visualize the probability of exactly k successes in n independent trials.

Live visualization
Expected value E[X]5.00
Variance Var(X)2.50
P(X = k)0.2461

For n = 10 and p = 0.50, the probability of exactly 5 successes is 0.2461.

Probability / Tool 06

Law of Large Numbers Simulator

Generate independent Bernoulli trials. Watch the observed proportion of successes fluctuate and (typically) stabilize near the true probability p as the sample grows.

Random simulation
Trials0
Successes0
Observed proportion—
Difference from p—

Click “Run simulation” to start an independent sequence of random trials.

What the theorem means: For independent Bernoulli trials with fixed probability p, the sample proportion converges to p in probability (and, in fact, almost surely). A single finite run may still wander away from p. Changing p resets the current experiment.
Number Theory / Tool 07 · Advanced

Euler Totient & Divisor Explorer

Factor n and compute φ(n), τ(n), σ(n), and the sum of the Möbius function across divisors.

Arithmetic functions

Valid for 1 ≤ n ≤ 1,000,000,000; calculated by integer prime factorization.

Number Theory / Tool 08 · Advanced

Fast Modular Exponentiation

Compute a^e modulo m using binary exponentiation, without ever expanding a giant power.

Repeated squaring
Number Theory / Tool 09 · Advanced

Generalized Chinese Remainder Theorem

Find all integers x satisfying two congruences, including the case of non-coprime moduli.

Compatible congruences
Number Theory / Tool 10 · Advanced

Quadratic Residues & Euler's Criterion

Determine whether a is a square modulo an odd prime p and display every square root.

Legendre symbol

Legendre symbol is displayed only when a is nonzero modulo p; otherwise symbol equals 0.

Probability / Tool 11 · Advanced

Normal Distribution Probability Explorer

Standardize interval endpoints and approximate P(a ≤ X ≤ b) for X ~ N(μ, σ²).

Normal CDF

CDF computed with a standard numerical approximation; displayed values are approximate.

Probability / Tool 12 · Advanced

Central Limit Theorem Simulator

Sample averages of independent Uniform(0,1) variables. Compare standardized averages to N(0,1).

Monte Carlo simulation
12
Mean of standardized values—
Variance of standardized values—

Press Run to generate independent samples. Bars are simulated; the red curve is the standard normal density.

Mathematical note: For each repetition, Z = √(12n)(X̄−1/2). The CLT predicts Z approaches a standard normal distribution as n grows, not that finite-n data become exactly normal.