🔤 生成 Tribonacci 词Generate Tribonacci Words
生成 Tribonacci 词(OEIS A080843,字母 a、b、c 写作 0、1、2)。下标从 0 开始:S0 = 0,S1 = 01,S2 = 0102,之后 Sn = Sn−1 Sn−2 Sn−3(把前三项依次拼接);Sn 也等于从 0 出发做 n 次替换 0→01、1→02、2→0。本地处理。Generate Tribonacci words (OEIS A080843, with the letters a, b, c written as 0, 1, 2). Indices start at 0: S0 = 0, S1 = 01, S2 = 0102, then Sn = Sn−1 Sn−2 Sn−3 (the previous three joined in order); Sn is also what n substitutions 0→01, 1→02, 2→0 make from 0. Processed locally.
使用说明与常见问题How-to & FAQ
「生成 Tribonacci 词」是什么?What is the Generate Tribonacci Words tool?
生成 Tribonacci 词(OEIS A080843,字母 a、b、c 写作 0、1、2)。下标从 0 开始:S0 = 0,S1 = 01,S2 = 0102,之后 Sn = Sn−1 Sn−2 Sn−3(把前三项依次拼接);Sn 也等于从 0 出发做 n 次替换 0→01、1→02、2→0。本地处理。Generate Tribonacci words (OEIS A080843, with the letters a, b, c written as 0, 1, 2). Indices start at 0: S0 = 0, S1 = 01, S2 = 0102, then Sn = Sn−1 Sn−2 Sn−3 (the previous three joined in order); Sn is also what n substitutions 0→01, 1→02, 2→0 make from 0. Processed locally.
如何使用「生成 Tribonacci 词」?How do I use the Generate Tribonacci Words tool?
在「生成 Tribonacci 词」中,按需设置「模式」、「下标 n(从 0 起)」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Tribonacci Words: Adjust "Mode", "Index n (from 0)"; the result appears below instantly — click "Copy result" to copy it.
下标从几开始?和 abac 写法怎么对应?Where do the indices start, and how does this match the abac form?
本页统一从 S0 开始编号:S0 = 0,S1 = 01,S2 = 0102,S3 = 0102010。把 0、1、2 换成 a、b、c 就是常见写法 a、ab、abac、abacaba,也就是替换 a→ab、b→ac、c→a 从 a 出发做 0、1、2、3 次的结果。有些资料从 1 开始数(T1 = a),那里的 Tn 就是本页的 S(n−1)。This page numbers from S0 throughout: S0 = 0, S1 = 01, S2 = 0102, S3 = 0102010. Replacing 0, 1, 2 with a, b, c gives the usual a, ab, abac, abacaba, i.e. the substitution a→ab, b→ac, c→a applied 0, 1, 2, 3 times to a. Some sources count from 1 (T1 = a); their Tn is S(n−1) here.
和斐波那契词有何不同?How does it differ from the Fibonacci word?
斐波那契词只用 0、1,每项拼接前两项;Tribonacci 词用 0、1、2 三个字母,每项拼接前三项:S3=0102010,S4=0102010010201。它也等于从 0 出发反复做替换 0→01、1→02、2→0 得到的无限词,长度依次是 Tribonacci 数 1、2、4、7、13、24…The Fibonacci word uses only 0 and 1 and joins the previous two words; the Tribonacci word uses the three letters 0, 1 and 2 and joins the previous three: S3=0102010, S4=0102010010201. It is also the infinite word obtained from 0 by repeatedly substituting 0→01, 1→02, 2→0, and the lengths are the Tribonacci numbers 1, 2, 4, 7, 13, 24…
n 最大是多少?How large can n be?
0–24。S24 已有 2,555,757 个字符(约 256 万);超出范围会提示。结果是逐字拼接的文本,不经过浮点计算。0 to 24. S24 already has 2,555,757 characters (about 2.6 million); larger values give a message. The result is text built by joining strings, with no floating-point arithmetic (processed as text).
输入和输出是什么样的?What does the input and output look like?
例如在「生成 Tribonacci 词」中把「下标 n(从 0 起)」设为 3,「模式」设为 只要 Sn,输出为:0102010。For example, in the Generate Tribonacci Words with "Index n (from 0)" set to 3, "Mode" set to Only Sn, the output is: 0102010.
有哪些选项可以调整?What options can I adjust?
「生成 Tribonacci 词」的设置:「模式」可选 只要 Sn、列出 S0…Sn(默认 只要 Sn);「下标 n(从 0 起)」默认 6。每次生成结果都按当前设置处理。Settings in the Generate Tribonacci Words — "Mode": Only Sn, List S0…Sn (default Only Sn); "Index n (from 0)" default 6. The result always uses the current settings.
「生成 Tribonacci 词」免费吗?需要注册吗?Is the Generate Tribonacci Words free? Do I need an account?
「生成 Tribonacci 词」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Tribonacci Words is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.