🌳 生成 Baum–Sweet 序列Generate Baum–Sweet Sequence
生成 Baum–Sweet 序列:若 n 的二进制表示不含奇数长度的连续 0 块则为 1,否则为 0。本地处理。Generate the Baum–Sweet sequence: 1 if the binary of n has no odd-length run of zeros, else 0. Processed locally.
使用说明与常见问题How-to & FAQ
「生成 Baum–Sweet 序列」是什么?What is the Generate Baum–Sweet Sequence tool?
生成 Baum–Sweet 序列:若 n 的二进制表示不含奇数长度的连续 0 块则为 1,否则为 0。本地处理。Generate the Baum–Sweet sequence: 1 if the binary of n has no odd-length run of zeros, else 0. Processed locally.
如何使用「生成 Baum–Sweet 序列」?How do I use the Generate Baum–Sweet Sequence tool?
在「生成 Baum–Sweet 序列」中,按需设置「项数」、「分隔」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Baum–Sweet Sequence: Adjust "Terms", "Separator"; the result appears below instantly — click "Copy result" to copy it.
a(0) 是什么?What is a(0)?
约定 a(0)=1(空的二进制没有奇数 0 块)。By convention a(0)=1 (the empty binary expansion has no odd zero-run).
输入和输出是什么样的?What does the input and output look like?
例如在「生成 Baum–Sweet 序列」中把「项数」设为 8,输出为:1 1 0 1 1 0 0 1。For example, in the Generate Baum–Sweet Sequence with "Terms" set to 8, the output is: 1 1 0 1 1 0 0 1.
有哪些选项可以调整?What options can I adjust?
「生成 Baum–Sweet 序列」的设置:「项数」默认 32;「分隔」可选 空格、逗号、无分隔(默认 空格)。每次生成结果都按当前设置处理。Settings in the Generate Baum–Sweet Sequence — "Terms" default 32; "Separator": Spaces, Commas, None (default Spaces). The result always uses the current settings.
计算精度如何?How precise are the results?
「生成 Baum–Sweet 序列」中的整数都用大整数(BigInt)精确计算,不经过浮点,所以再长的项也不会丢失位数;输入超出页面说明的范围时会给出提示,而不是悄悄截断。Integers in the Generate Baum–Sweet Sequence are computed exactly with big integers (BigInt), with no floating-point step, so even very long terms keep every digit; values outside the stated ranges give a message instead of being silently cut off.
「生成 Baum–Sweet 序列」免费吗?需要注册吗?Is the Generate Baum–Sweet Sequence free? Do I need an account?
「生成 Baum–Sweet 序列」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Baum–Sweet Sequence is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.