Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Generate Baum-Sweet Sequence

Generate the Baum-Sweet sequence — b(n) is 1 if the binary representation of n contains no odd-length block of consecutive zeros.

What Is the Baum-Sweet Sequence?

Generate the Baum-Sweet sequence up to any term count — b(n) is 1 when n's binary form has no odd-length block of zeros, and 0 otherwise. Pick the table view to see each n with its binary digits, or output the raw sequence as a single line. And everything runs in your browser. Nothing gets uploaded.

Related Tools