Math Tools
A large set of browser-based math utilities: integer sequence generators (primes, Fibonacci, Lucas, and other classic sequences), digit sequences for famous constants, matrix arithmetic, and a wide range of fractal and space-filling curve generators drawn as scalable vector graphics. Everything runs locally in your browser, so nothing you enter is ever sent to a server.
Generate Abundant Number Sequence
List the first N abundant numbers, whose proper divisors sum to more than the number itself.
Open toolGenerate Almost Perfect Numbers
List the first N almost-perfect numbers, whose proper divisors sum to exactly one less than the number.
Open toolGenerate an Asymmetric Cantor Set
Generate our asymmetric variant of the Cantor set, keeping an uneven 30%/50% split instead of an even middle-third removal.
Open toolGenerate Baum-Sweet Sequence
Generate the first N terms of the Baum-Sweet sequence of 0s and 1s.
Open toolGenerate a Cantor Dust Fractal
Generate Cantor dust, the real 2D generalization of the Cantor set, built by keeping only the 4 corner cells of a 3x3 grid at every scale.
Open toolGenerate a Cantor Set
Generate the classic middle-thirds Cantor set, stacked one row per iteration, as a downloadable SVG.
Open toolGenerate a Cesaro Fractal
Render the Cesaro curve, a Koch-family fractal at an 85 degree turn angle that gives it a torn-paper look.
Open toolGenerate a Cesaro Polyflake
Render our hexagon-based extension of the Cesaro curve, applying its off-angle rule to six sides instead of four.
Open toolGenerate Deficient Number Sequence
List the first N deficient numbers, whose proper divisors sum to less than the number itself.
Open toolGenerate a Dragon Curve
Enter an iteration count and render the classic Heighway dragon curve as SVG line art.
Open toole Digit Generator
Generate digits of e (Euler's number), exactly, using BigInt fixed-point arithmetic.
Open toolGenerate Even Numbers
Generate the first N even numbers, starting from 0.
Open toolFactorial Calculator
Calculate the factorial of a non-negative integer, exactly, using BigInt.
Open toolTest If a Number Is Fibonacci
Test whether a whole number appears anywhere in the Fibonacci sequence.
Open toolGenerate Fibonacci Numbers
Type a count and get that many Fibonacci numbers, starting from 0, 1.
Open toolGenerate Fibonacci Primes
Type a count and get that many Fibonacci numbers that are also prime.
Open toolGenerate a Fibonacci Word Fractal
Generate the Fibonacci word fractal, a turtle-drawn curve built from the Fibonacci word's 0s and 1s.
Open toolGenerate Fibonacci Words
Type a character count and get that many characters of the infinite Fibonacci word.
Open toolGenerate a Generalized Cantor Set
Generate our generalized Cantor set variant, keeping 3 of 5 equal parts per iteration instead of the classic 2 of 3.
Open toolGenerate Gijswijt's Sequence
Generate N terms of Gijswijt's self-describing sequence, based on the longest repeated block in the sequence so far.
Open toolGolden (Phi) Ratio Digit Generator
Generate digits of the golden ratio (phi), exactly, using BigInt integer square root.
Open toolGenerate a Gosper Curve
Render the Gosper curve, also known as the Peano-Gosper curve or flowsnake.
Open toolGenerate an H-fractal
Generate the classic H-tree fractal, an H shape with a smaller H centered on each of its 4 endpoints, recursively.
Open toolGenerate a Heighway Triangle
Enter an iteration count and render our 60-degree, triangular-angle variant of the Heighway dragon curve's turtle rules.
Open toolGenerate a Hexadragon Fractal
Render a six-fold arrangement of terdragon curves turned around a shared hexagonal center.
Open toolGenerate a Hilbert Curve
Enter an iteration count and render the Hilbert curve, the classic space-filling curve, as SVG line art.
Open toolGenerate a Koch Anti-snowflake
Generate the Koch anti-snowflake, the Koch snowflake with every bump pointing inward instead of outward.
Open toolGenerate a Koch Polyflake
Generate our Koch polyflake, the classic Koch bump rule applied to a hexagon base instead of a triangle.
Open toolGenerate a Koch Star
Generate the classic Koch snowflake, a Koch curve applied to all three sides of an equilateral triangle.
Open toolGenerate a Koch Triangle
Render the single, open Koch curve, the triangular zigzag bump pattern before it's closed into a snowflake.
Open toolGenerate Kolakoski Sequence
Generate N terms of the self-describing Kolakoski sequence over the alphabet {1, 2}.
Open toolL-system Generator
Type an axiom and production rules, pick a turn angle and iteration count, and render the resulting turtle-graphics curve.
Open toolGenerate a Levy C Curve
Render the classic Levy C curve, a self-similar fractal built from a single 45 degree turtle-graphics rule.
Open toolGenerate Look-and-Say Sequence
Generate N iterations of Conway's look-and-say sequence, starting from the seed "1".
Open toolGenerate Lucas Numbers
Type a count and get that many Lucas numbers, starting from 2, 1.
Open toolGenerate Lucas Primes
Type a count and get that many Lucas numbers that are also prime.
Open toolMatrix Addition Calculator
Add two matrices element by element and get the resulting matrix.
Open toolFind the Determinant of a Matrix
Compute the determinant of a square matrix, up to 10x10 and beyond.
Open toolGenerate an Identity Matrix
Generate an NxN identity matrix, 1s on the diagonal and 0s everywhere else.
Open toolMatrix Inverse Calculator
Compute the inverse of a square matrix using Gauss-Jordan elimination.
Open toolMatrix Multiplication Calculator
Multiply two matrices using standard matrix multiplication.
Open toolGenerate Random Matrices
Generate a matrix of random numbers with a chosen size and value range.
Open toolMatrix Subtraction Calculator
Subtract one matrix from another element by element.
Open toolTranspose a Matrix
Swap the rows and columns of a matrix to compute its transpose.
Open toolGenerate a Moore Curve
Render the Moore curve, a closed-loop variant of the Hilbert space-filling curve.
Open toolGenerate Moser-de Bruijn Sequence
Generate the first N terms of the Moser-de Bruijn sequence, sums of distinct powers of 4.
Open toolGenerate Negafibonacci Numbers
Type a count and get that many negafibonacci numbers, F(-1), F(-2), F(-3), and so on.
Open toolGenerate Negalucas Numbers
Type a count and get that many negalucas numbers, L(-1), L(-2), L(-3), and so on.
Open toolFind All Divisors of a Number
Find every positive divisor of a number, listed in ascending order.
Open toolGenerate Odd Numbers
Generate the first N odd numbers, starting from 1.
Open toolGenerate Paperfolding Sequence
Generate N terms of the regular paperfolding (dragon curve) sequence over {0, 1}.
Open toolPascal's Triangle Generator
Generate Pascal's Triangle to any number of rows, computed exactly with BigInt.
Open toolGenerate a Peano Curve
Render the classic Peano space-filling curve as downloadable SVG line art.
Open toolGenerate Perfect Numbers
List the first N perfect numbers, whose proper divisors sum to exactly the number itself.
Open toolPi Digit Generator
Generate digits of pi, exactly, using BigInt fixed-point arithmetic.
Open toolFind Prime Factors
Find the prime factorization of a number, written as a product of primes.
Open toolTest If a Number Is a Prime
Test whether a number is prime, with a plain-language explanation of why.
Open toolGenerate Prime Numbers
Type a count and get that many prime numbers, starting from 2.
Open toolGenerate Prouhet-Thue-Morse Sequence
Generate the first N terms of the Prouhet-Thue-Morse sequence over {0, 1}, based on binary digit-sum parity.
Open toolGenerate a Pythagoras Tree Fractal
Generate the classic Pythagoras tree fractal, a square branching into two smaller squares at 45 degrees, recursively.
Open toolGenerate a Quaddragon Curve
Render a four-fold arrangement of Heighway dragon curves turned around a shared center.
Open toolGenerate a Quadratic Cross Fractal
Render a right-angle Koch-family curve whose rule carves a cross or plus-sign silhouette instead of a smooth boundary.
Open toolGenerate a Quadratic Koch Island
Render the classic right-angle Koch island, a square outline built out with 90 degree notches.
Open toolRandom Number Sequence Generator
Generate a sequence of random integers within a min/max range, using cryptographic randomness.
Open toolGenerate Rudin-Shapiro Sequence
Generate the first N terms of the Rudin-Shapiro sequence of +1 and -1 values.
Open toolGenerate a Sierpinski Arrowhead Curve
Render the Sierpinski arrowhead curve, a single continuous path that traces the Sierpinski triangle.
Open toolGenerate a Sierpinski Carpet
Render the classic Sierpinski carpet by recursively removing the center of a 3x3 grid.
Open toolGenerate a Sierpinski Curve
Render the Sierpinski curve, a right-angle space-filling curve related to the Sierpinski triangle.
Open toolGenerate a Sierpinski Hexagon
Generate a hexaflake, a central hexagon surrounded by 6 smaller hexagons, each scaled by one third.
Open toolGenerate a Sierpinski Maze
Render a Sierpinski carpet subdivision as outlined corridors instead of filled cells, so it reads as a maze.
Open toolGenerate a Sierpinski Pentagon
Generate a pentaflake, a central pentagon surrounded by 5 smaller pentagons, scaled by the golden ratio.
Open toolGenerate a Sierpinski Polyflake
Generate our octagon-based n-flake, a central octagon surrounded by 8 smaller octagons.
Open toolGenerate a Sierpinski Square
Generate our square-based Sierpinski variant that drops one quadrant per level instead of a center cell.
Open toolGenerate a Sierpinski Triangle
Render the classic Sierpinski triangle by recursively subdividing a filled triangle.
Open toolGenerate a Smith-Volterra-Cantor Set
Generate a fat-Cantor-set-style construction that keeps a far larger, slower-shrinking fraction of length than the classic Cantor set.
Open toolGenerate a T-square Fractal
Generate the classic T-square fractal, half-size squares placed on every corner of the previous generation, recursively.
Open toolGenerate a Terdragon Curve
Enter an iteration count and render the terdragon curve, the ternary dragon curve built from a 120-degree turning rule, as SVG line art.
Open toolGenerate Tribonacci Words
Type a character count and get that many characters of the infinite Tribonacci word.
Open toolGenerate a Triflake Curve
Render our tri-fold rosette made from three Koch Star snowflakes rotated 120 degrees apart around a shared center.
Open toolGenerate a Twindragon Curve
Enter an iteration count and render the twindragon curve, two Heighway dragon curves joined to tile the plane, as SVG line art.
Open toolGenerate a V-tree Fractal
Generate a Y/V-branching recursive tree, splitting into two splayed, shrinking child branches at every generation.
Open toolGenerate a Vicsek Fractal
Render the classic Vicsek fractal, a cross-shaped pattern built by recursively keeping the center row and column of a grid.
Open toolGenerate a Z-order Curve
Generate the Z-order (Morton order) space-filling curve, visiting every cell of a grid by interleaving each cell's x and y bits.
Open tool