Generate Baum-Sweet Sequence
Create Baum-Sweet sequence values. 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 Sequence
- 1. Set the term count. Enter How many terms to decide how far into the Baum-Sweet sequence to compute. Each term is 1 or 0 depending on the binary representation of its index, so more terms reveal more of the pattern.
- 2. Choose a separator. Set Separator to a comma, space or newline to match how you intend to use the output, whether that is a plain list or a column pasted into a spreadsheet.
- 3. Copy the sequence. The tool evaluates each index and outputs 1 when its binary form has no block of consecutive zeros of odd length, 0 otherwise. Copy the resulting terms for reference or analysis.
When to use Generate Baum-Sweet Sequence
Generate Baum-Sweet Sequence produces the automatic sequence defined by whether each number's binary digits contain a run of consecutive zeros with odd length. It saves the manual work of converting indices to binary and checking each run by hand.
- Studying automatic sequences. A student working through a course on automata theory or combinatorics on words wants concrete terms of the Baum-Sweet sequence to compare against a finite automaton they built by hand.
- Verifying an OEIS entry. Someone cross-checking OEIS A086747 against their own implementation generates the first several dozen terms here and diffs them against the published values.
- Writing a paper on 2-automatic sequences. A researcher preparing an example table for a paper on 2-automatic sequences needs a clean, correct run of terms without writing a script just to print them.
- Exploring binary run-length patterns. Someone curious about which integers have binary expansions with only even-length zero runs uses the sequence as a quick way to spot which indices produce a 1 versus a 0.
Examples
The first ten terms
Output
1, 1, 0, 1, 1, 0, 0, 1, 0, 1
About the Generate Baum-Sweet Sequence tool
Generate Baum-Sweet Sequence is a free online tool that works entirely inside your web browser. Create Baum-Sweet sequence values. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 234 Math 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
Is Generate Baum-Sweet Sequence 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.