Generate Moser de Bruijn Numbers
Calculate a sequence of Moser-Bruijn numbers. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate Moser de Bruijn Numbers
- 1. Choose the sequence length. Set How many terms to the number of Moser-de Bruijn values to compute, starting from 0.
- 2. Understand what gets computed. Each term is a sum of distinct powers of 4, equivalent to writing the index in base 2 and reading the digits back in base 4, which produces sequence A000695.
- 3. Pick a separator. Set Separator to a comma or newline so the growing values stay readable as they climb through the powers of four.
- 4. Copy the sequence. Copy the generated terms into a research note or script exploring base-4 representations and their additive properties.
When to use Generate Moser de Bruijn Numbers
Generate Moser de Bruijn Numbers lists sums of distinct powers of four, a sequence with the notable property that every nonnegative integer can be written uniquely as a sum of one Moser-de Bruijn number and one of its four-times multiples. Use this tool to get concrete terms without manually converting indices to binary and reinterpreting them in base 4.
- Studying base-4 digit sums. A number theory hobbyist exploring why every integer splits uniquely into a Moser-de Bruijn number plus four times another wants the first thirty terms to test the property by hand on small cases.
- Cross-checking a binary-to-base-4 conversion script. A developer implementing the binary-reinterpreted-in-base-4 trick in JavaScript wants a known-correct sequence of twenty terms to diff their output against during testing.
- Populating an OEIS-adjacent reference table. Someone building a small reference page of classic integer sequences for a personal wiki needs the first fifteen A000695 values alongside other named sequences.
Examples
The first nine numbers
Output
0, 1, 4, 5, 16, 17, 20, 21, 64
About the Generate Moser de Bruijn Numbers tool
Generate Moser de Bruijn Numbers does its work locally, right in the browser. Calculate a sequence of Moser-Bruijn numbers. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Number Tools collection on EditSafely, a set of 194 small, focused Number utilities that share the same instant, private workspace.
You can shape the output with 2 settings, including How many terms and Separator, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Generate Moser de Bruijn Numbers free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.