Generate Baum-Sweet Numbers
Calculate a sequence of Baum-Sweet 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 Baum-Sweet Numbers
- 1. Set How many terms. There's nothing to paste here. Start by choosing how many terms of the sequence to generate under How many terms.
- 2. Understand the Baum-Sweet rule. Each term is 1 if the binary representation of its index contains no block of consecutive zeros of odd length, and 0 otherwise, making this an automatic sequence.
- 3. Copy the sequence. Set the Separator, then copy the generated 0s and 1s, such as the first ten terms, from the output pane into your reference notes or research.
When to use Generate Baum-Sweet Numbers
Generate Baum-Sweet Numbers produces the classic automatic sequence built from the binary representation of the index, a staple example in the study of automatic sequences and OEIS entry A086747. It saves working through each index's binary form by hand.
- Studying automatic sequences in a formal languages course. A theoretical computer science course covers sequences generated by finite automata, and the Baum-Sweet sequence is a standard textbook example worth generating directly.
- Verifying an implementation against OEIS A086747. You're writing code to generate the Baum-Sweet sequence and want a trusted reference output to compare your implementation's early terms against.
- Exploring binary structure and zero-block patterns. You're investigating how blocks of consecutive zeros in binary representations affect a derived sequence, and generating terms gives you concrete data to examine.
- Building a reference list for a number theory writeup. A blog post or paper about automatic sequences needs a correct, ready-made list of Baum-Sweet terms to include as an illustrative example.
Examples
The first ten numbers
Output
1, 1, 0, 1, 1, 0, 0, 1, 0, 1
About the Generate Baum-Sweet Numbers tool
Generate Baum-Sweet Numbers is a free online tool that works entirely inside your web browser. Calculate a sequence of Baum-Sweet numbers. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 194 Number utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
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.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.
Frequently asked questions
Does Generate Baum-Sweet Numbers cost anything?
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?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
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?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
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.