Kolakoski Sequence

en.wikipedia.org

54 points by surprisetalk 6 days ago


MontyCarloHall - 5 hours ago

For those not getting this immediately (I sure didn't):

              _____________
   sequence   1 2 2 1 1 2 1 2 2 1
   run lens   1 2-- 2-- 1 1 2-- 1
Read out the bottom sequence of run lengths, and be amazed that it's the same as the first 7 digits as the top sequence. Extend the bottom to continue to recapitulate the top sequence, and add terms to the top sequence accordingly to reflect the run lengths in the bottom sequence. Repeat infinitely.
nwellnhof - 4 hours ago

There's a fascinating way to generate the Kolakoski sequence with bit fiddling: https://11011110.github.io/blog/2016/10/14/kolakoski-sequenc...

vindex10 - 4 hours ago

Is it a coincidence that it is number 2 in the OEIS?)

- 6 hours ago
[deleted]