Generate Gijswijt Numbers

This tool creates the Gijswijt sequence based on your input count. You control how the results appear with options to add index numbers and switch between line-by-line or inline formatting. The tool updates output live, flashes changes, and provides built-in buttons to export or copy your results in one click.

Everything works right in the browser. Just type how many terms you want, and it handles the logic.

Total items: 0
Options
Line-by-line output
Show index numbers

How to Use:

  1. Enter how many Gijswijt numbers to generate.
  2. Choose formatting preferences:
    • Line-by-line vs inline
    • Index numbers ON or OFF
  3. Results appear instantly on the right.
  4. Click “Copy Output” to copy it, or “Export to File” to download.
  5. Use “Clear All” to reset everything.

What Generate Gijswijt Numbers can do:

This sequence grows slowly and recursively. Each number is determined by looking at how often the current suffix can be repeated. It begins with 1 and gradually increases as the pattern builds. You’ll get clean output that updates as soon as you type, and the toggles make it easy to switch formatting or add labels.

The counter below the output shows how many items were generated, and the flashing border helps confirm updates live.

Example:

Input:

12

Settings: Line-by-line: ON, Show index: OFF

Output:

1
1
2
1
1
2
2
2
3
1
1
2

Common Use Cases:

Use it to study recursive numeric patterns, generate sequences for mathematical exploration, or build datasets with self-descriptive behavior. The Gijswijt sequence is especially useful for algorithm testing, number theory demonstrations, or curious math learners wanting to explore slow-growing sequences.

Useful Tools & Suggestions:

Check out Generate Kolakoski Sequence it’s another self-referential pattern that gets more bizarre the longer it goes. And if you’re feeling analytical, Find Entropy of a Number can help you spot just how much repetition sneaks into these strange sequences.