Home Tools Blog About

Generate the Kolakoski Sequence

In short

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.

🛡
100% PrivateNo server uploads, ever
InstantRuns in your browser
💧
No WatermarksClean output, always
🆓
Free ForeverNo accounts, no limits

How to Use Generate the Kolakoski Sequence

Generate the Kolakoski Sequence · free online tool · All Tools Verse
Generate the Kolakoski Sequence. Free online tool that runs in your browser.
  1. Set how many terms. The length of the sequence to produce.
  2. Pick a separator. Comma, new line, or space.
  3. Generate. The first terms are listed in order.
  4. 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.

Keep going

Related Tools

All Math tools →
Share

Embed this tool

Add this free tool to your website. Copy and paste the code: