Staaarter

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 tool

Generate Almost Perfect Numbers

List the first N almost-perfect numbers, whose proper divisors sum to exactly one less than the number.

Open tool

Generate 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 tool

Generate Baum-Sweet Sequence

Generate the first N terms of the Baum-Sweet sequence of 0s and 1s.

Open tool

Generate 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 tool

Generate a Cantor Set

Generate the classic middle-thirds Cantor set, stacked one row per iteration, as a downloadable SVG.

Open tool

Generate 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 tool

Generate a Cesaro Polyflake

Render our hexagon-based extension of the Cesaro curve, applying its off-angle rule to six sides instead of four.

Open tool

Generate Deficient Number Sequence

List the first N deficient numbers, whose proper divisors sum to less than the number itself.

Open tool

Generate a Dragon Curve

Enter an iteration count and render the classic Heighway dragon curve as SVG line art.

Open tool

e Digit Generator

Generate digits of e (Euler's number), exactly, using BigInt fixed-point arithmetic.

Open tool

Generate Even Numbers

Generate the first N even numbers, starting from 0.

Open tool

Factorial Calculator

Calculate the factorial of a non-negative integer, exactly, using BigInt.

Open tool

Test If a Number Is Fibonacci

Test whether a whole number appears anywhere in the Fibonacci sequence.

Open tool

Generate Fibonacci Numbers

Type a count and get that many Fibonacci numbers, starting from 0, 1.

Open tool

Generate Fibonacci Primes

Type a count and get that many Fibonacci numbers that are also prime.

Open tool

Generate a Fibonacci Word Fractal

Generate the Fibonacci word fractal, a turtle-drawn curve built from the Fibonacci word's 0s and 1s.

Open tool

Generate Fibonacci Words

Type a character count and get that many characters of the infinite Fibonacci word.

Open tool

Generate 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 tool

Generate Gijswijt's Sequence

Generate N terms of Gijswijt's self-describing sequence, based on the longest repeated block in the sequence so far.

Open tool

Golden (Phi) Ratio Digit Generator

Generate digits of the golden ratio (phi), exactly, using BigInt integer square root.

Open tool

Generate a Gosper Curve

Render the Gosper curve, also known as the Peano-Gosper curve or flowsnake.

Open tool

Generate 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 tool

Generate a Heighway Triangle

Enter an iteration count and render our 60-degree, triangular-angle variant of the Heighway dragon curve's turtle rules.

Open tool

Generate a Hexadragon Fractal

Render a six-fold arrangement of terdragon curves turned around a shared hexagonal center.

Open tool

Generate a Hilbert Curve

Enter an iteration count and render the Hilbert curve, the classic space-filling curve, as SVG line art.

Open tool

Generate a Koch Anti-snowflake

Generate the Koch anti-snowflake, the Koch snowflake with every bump pointing inward instead of outward.

Open tool

Generate a Koch Polyflake

Generate our Koch polyflake, the classic Koch bump rule applied to a hexagon base instead of a triangle.

Open tool

Generate a Koch Star

Generate the classic Koch snowflake, a Koch curve applied to all three sides of an equilateral triangle.

Open tool

Generate a Koch Triangle

Render the single, open Koch curve, the triangular zigzag bump pattern before it's closed into a snowflake.

Open tool

Generate Kolakoski Sequence

Generate N terms of the self-describing Kolakoski sequence over the alphabet {1, 2}.

Open tool

L-system Generator

Type an axiom and production rules, pick a turn angle and iteration count, and render the resulting turtle-graphics curve.

Open tool

Generate a Levy C Curve

Render the classic Levy C curve, a self-similar fractal built from a single 45 degree turtle-graphics rule.

Open tool

Generate Look-and-Say Sequence

Generate N iterations of Conway's look-and-say sequence, starting from the seed "1".

Open tool

Generate Lucas Numbers

Type a count and get that many Lucas numbers, starting from 2, 1.

Open tool

Generate Lucas Primes

Type a count and get that many Lucas numbers that are also prime.

Open tool

Matrix Addition Calculator

Add two matrices element by element and get the resulting matrix.

Open tool

Find the Determinant of a Matrix

Compute the determinant of a square matrix, up to 10x10 and beyond.

Open tool

Generate an Identity Matrix

Generate an NxN identity matrix, 1s on the diagonal and 0s everywhere else.

Open tool

Matrix Inverse Calculator

Compute the inverse of a square matrix using Gauss-Jordan elimination.

Open tool

Matrix Multiplication Calculator

Multiply two matrices using standard matrix multiplication.

Open tool

Generate Random Matrices

Generate a matrix of random numbers with a chosen size and value range.

Open tool

Matrix Subtraction Calculator

Subtract one matrix from another element by element.

Open tool

Transpose a Matrix

Swap the rows and columns of a matrix to compute its transpose.

Open tool

Generate a Moore Curve

Render the Moore curve, a closed-loop variant of the Hilbert space-filling curve.

Open tool

Generate Moser-de Bruijn Sequence

Generate the first N terms of the Moser-de Bruijn sequence, sums of distinct powers of 4.

Open tool

Generate Negafibonacci Numbers

Type a count and get that many negafibonacci numbers, F(-1), F(-2), F(-3), and so on.

Open tool

Generate Negalucas Numbers

Type a count and get that many negalucas numbers, L(-1), L(-2), L(-3), and so on.

Open tool

Find All Divisors of a Number

Find every positive divisor of a number, listed in ascending order.

Open tool

Generate Odd Numbers

Generate the first N odd numbers, starting from 1.

Open tool

Generate Paperfolding Sequence

Generate N terms of the regular paperfolding (dragon curve) sequence over {0, 1}.

Open tool

Pascal's Triangle Generator

Generate Pascal's Triangle to any number of rows, computed exactly with BigInt.

Open tool

Generate a Peano Curve

Render the classic Peano space-filling curve as downloadable SVG line art.

Open tool

Generate Perfect Numbers

List the first N perfect numbers, whose proper divisors sum to exactly the number itself.

Open tool

Pi Digit Generator

Generate digits of pi, exactly, using BigInt fixed-point arithmetic.

Open tool

Find Prime Factors

Find the prime factorization of a number, written as a product of primes.

Open tool

Test If a Number Is a Prime

Test whether a number is prime, with a plain-language explanation of why.

Open tool

Generate Prime Numbers

Type a count and get that many prime numbers, starting from 2.

Open tool

Generate 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 tool

Generate a Pythagoras Tree Fractal

Generate the classic Pythagoras tree fractal, a square branching into two smaller squares at 45 degrees, recursively.

Open tool

Generate a Quaddragon Curve

Render a four-fold arrangement of Heighway dragon curves turned around a shared center.

Open tool

Generate 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 tool

Generate a Quadratic Koch Island

Render the classic right-angle Koch island, a square outline built out with 90 degree notches.

Open tool

Random Number Sequence Generator

Generate a sequence of random integers within a min/max range, using cryptographic randomness.

Open tool

Generate Rudin-Shapiro Sequence

Generate the first N terms of the Rudin-Shapiro sequence of +1 and -1 values.

Open tool

Generate a Sierpinski Arrowhead Curve

Render the Sierpinski arrowhead curve, a single continuous path that traces the Sierpinski triangle.

Open tool

Generate a Sierpinski Carpet

Render the classic Sierpinski carpet by recursively removing the center of a 3x3 grid.

Open tool

Generate a Sierpinski Curve

Render the Sierpinski curve, a right-angle space-filling curve related to the Sierpinski triangle.

Open tool

Generate a Sierpinski Hexagon

Generate a hexaflake, a central hexagon surrounded by 6 smaller hexagons, each scaled by one third.

Open tool

Generate a Sierpinski Maze

Render a Sierpinski carpet subdivision as outlined corridors instead of filled cells, so it reads as a maze.

Open tool

Generate a Sierpinski Pentagon

Generate a pentaflake, a central pentagon surrounded by 5 smaller pentagons, scaled by the golden ratio.

Open tool

Generate a Sierpinski Polyflake

Generate our octagon-based n-flake, a central octagon surrounded by 8 smaller octagons.

Open tool

Generate a Sierpinski Square

Generate our square-based Sierpinski variant that drops one quadrant per level instead of a center cell.

Open tool

Generate a Sierpinski Triangle

Render the classic Sierpinski triangle by recursively subdividing a filled triangle.

Open tool

Generate 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 tool

Generate a T-square Fractal

Generate the classic T-square fractal, half-size squares placed on every corner of the previous generation, recursively.

Open tool

Generate 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 tool

Generate Tribonacci Words

Type a character count and get that many characters of the infinite Tribonacci word.

Open tool

Generate a Triflake Curve

Render our tri-fold rosette made from three Koch Star snowflakes rotated 120 degrees apart around a shared center.

Open tool

Generate 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 tool

Generate a V-tree Fractal

Generate a Y/V-branching recursive tree, splitting into two splayed, shrinking child branches at every generation.

Open tool

Generate 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 tool

Generate 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