Generate Moser de Bruijn Numbers

Use this tool to quickly generate a list of Moser de Bruijn Numbers with custom output formatting. You can toggle whether to include zero, switch between line-by-line or inline output, and optionally display index numbers for each result. The preview updates instantly as you modify your settings or input count, making it easy to experiment or export the output.

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

How to Use:

  1. Type how many Moser de Bruijn numbers you want in the input field.
  2. Use the toggles in the Options box:
    • Include 0 – decides whether to start with zero.
    • Line-by-line output – makes each number appear on its own line.
    • Show index numbers – prepends each value with its position (like 1: 1).
  3. Output updates live in the right box.
  4. Use “Copy Output” to copy, or “Export to File” to save the list.
  5. “Clear All” resets everything back to default.

What Generate Moser de Bruijn Numbers can do:

The tool is designed to be flexible and responsive. The toggle for zero inclusion helps if you need the classic version or a variant. The format switch lets you quickly get your output in one long line or spaced out for readability. If you need reference markers, the index toggle shows positions. It’s all handled in-browser, with no page reloads, and you can instantly copy or export the results.

You’ll also see a live counter showing how many items were generated. Whether you’re studying binary-based sequences or need these for research, it gives you exactly what you need.

Example:

Input:

10

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

Output:

0
1
4
5
16
17
20
21
64
65

Common Use Cases:

Use it when you need to generate Moser-de-Bruijn numbers for analysis, teaching sequences based on binary structure, or just exploring mathematical patterns. It’s useful for coders, math students, or anyone working with non-standard integer sequences.

Useful Tools & Suggestions:

You might want to explore Generate Binary Numbers too it’s a good baseline for comparison since Moser de Bruijn Numbers are all powers of 4 in binary. And if you’re curious about structure, Find Entropy of a Number can show how regular or scattered the results really are.