Write runs of 1s and 2s so that the run lengths are the sequence itself, in order: the Kolakoski sequence starts 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1... Its runs have lengths 1, 2, 2, 1, 1, 2, 1, 2, 2, 1 — exactly the same digits. A sequence that describes its own runs, discovered by Oldenburger in 1939 and reinvented by Kolakoski in 1966.
Kolakoski Numbers Generator builds the sequence deterministically: each run length is dictated by the very digits being written. Choose a term count up to 50,000; rows show indexed blocks of digits; the stats line reports the run count, longest streak and the 1s ratio — the quantity the famous Kolakoski conjecture is about.