Generate Kolakoski Sequence
Generate the self-describing Kolakoski sequence — each term describes the length of the next run of 1s or 2s.
About the Kolakoski Sequence
Pick how many terms you want, choose a format, and generate the Kolakoski sequence — that odd self-describing string of 1s and 2s where reading off the run-lengths reproduces the sequence itself. Push past a few thousand terms and you’ll see the 1-to-2 ratio drift toward 50/50. And everything runs in your browser. Nothing gets uploaded.