Generate the Kolakoski Sequence
Generate the Kolakoski sequence, the self-describing sequence of 1s and 2s.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Calculated locally in your browser. Nothing is uploaded.
How to Use Generate the Kolakoski Sequence
- Set how many terms. The length of the sequence to produce.
- Pick a separator. Comma, new line, or space.
- Generate. The first terms are listed in order.
- Copy the result. Click Copy result. It all runs in your browser.
Frequently Asked Questions
What is the Kolakoski sequence?
A self-describing sequence of 1s and 2s where the run lengths of the sequence reproduce the sequence itself.
What does self-describing mean?
If you read off how many times each value repeats, you get the same sequence back.
How many terms can I list?
Up to one hundred thousand at once.
Is anything uploaded?
No. The sequence is generated in your browser, so nothing leaves the tab.
Is it free?
Yes. Every tool here is free to use with no sign up.
Related Tools
Generate the Baum-Sweet Sequence →
Generate the Baum-Sweet sequence, based on odd-length zero blocks in binary positions.
Generate the Gijswijt Sequence →
Generate the Gijswijt sequence, where each term counts the longest repeated block before it.
Generate Look and Say Sequence →
Generate the look-and-say sequence, where each term reads out the digits of the one…
Generate the Moser-de Bruijn Sequence →
Generate the Moser-de Bruijn sequence, the numbers that are sums of distinct powers of…
Generate the Paperfolding Sequence →
Generate the regular paperfolding sequence, the fold directions of the dragon curve.
Generate the Rudin-Shapiro Sequence →
Generate the Rudin-Shapiro sequence, plus or minus one from adjacent ones in binary.
Generate the Thue-Morse Sequence →
Generate the Thue-Morse sequence, where each term is the parity of the ones in…
Generate an Arithmetic Sequence →
Generate an arithmetic sequence from a starting value and a common difference, your length…
Date Sequence Generator →
Generate a sequence of dates between a start and end date at a step…
Generate a Geometric Sequence →
Generate a geometric sequence from a starting value and a common ratio, your length…
Generate Cube Numbers →
Generate the first N cube numbers (1, 8, 27, 64, 125, ...) with your…
Generate Square Numbers →
Generate the first N square numbers (1, 4, 9, 16, 25, ...) with your…