🔍

首页Home › 数学工具Math

🌀 生成 Kolakoski 序列Generate Kolakoski Sequence

生成 Kolakoski 序列(自描述的 1/2 游程序列):1,2,2,1,1,2,1,2,2,1,…。本地处理。Generate the Kolakoski sequence (self-describing 1/2 run-length sequence): 1,2,2,1,1,2,1,2,2,1,… Processed locally.

使用说明与常见问题How-to & FAQ

「生成 Kolakoski 序列」是什么?What is the Generate Kolakoski Sequence tool?

生成 Kolakoski 序列(自描述的 1/2 游程序列):1,2,2,1,1,2,1,2,2,1,…。本地处理。Generate the Kolakoski sequence (self-describing 1/2 run-length sequence): 1,2,2,1,1,2,1,2,2,1,… Processed locally.

如何使用「生成 Kolakoski 序列」?How do I use the Generate Kolakoski Sequence tool?

在「生成 Kolakoski 序列」中,按需设置「项数」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Kolakoski Sequence: Adjust "Terms"; the result appears below instantly — click "Copy result" to copy it.

为什么说 Kolakoski 序列是自描述的?Why is the Kolakoski sequence called self-describing?

序列只由 1 和 2 组成,把它按连续相同的数字分段(1 | 2 2 | 1 1 | 2 | 1 | 2 2 | 1 …),各段长度依次是 1 2 2 1 1 2 1 2 2 …,又正好是序列本身(OEIS A000002)。The sequence uses only 1s and 2s. Split it into runs of equal digits (1 | 2 2 | 1 1 | 2 | 1 | 2 2 | 1 …) and the run lengths 1 2 2 1 1 2 1 2 2 … spell out the sequence itself (OEIS A000002).

最多能生成多少项?How many terms can it make?

1–100000 项,10 万项也只需不到一秒。勾选「每行一个」时每项单独一行。1 to 100,000 terms; even 100,000 takes under a second. With One per line ticked, each term goes on its own line.

结果精确吗?Is the result exact?

精确。每一项都按自描述规则逐项生成,只有 1 和 2,不经过浮点计算。Yes. Each term is produced by the self-describing rule and is either 1 or 2; no floating-point arithmetic is involved.

输入和输出是什么样的?What does the input and output look like?

例如在「生成 Kolakoski 序列」中把「项数」设为 10,输出为:1 2 2 1 1 2 1 2 2 1。For example, in the Generate Kolakoski Sequence with "Terms" set to 10, the output is: 1 2 2 1 1 2 1 2 2 1.

有哪些选项可以调整?What options can I adjust?

「生成 Kolakoski 序列」的设置:「项数」默认 30;可勾选:「每行一个」。每次生成结果都按当前设置处理。Settings in the Generate Kolakoski Sequence — "Terms" default 30; tick boxes: "One per line". The result always uses the current settings.

「生成 Kolakoski 序列」免费吗?需要注册吗?Is the Generate Kolakoski Sequence free? Do I need an account?

「生成 Kolakoski 序列」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Kolakoski 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.

相关工具Related tools

🌳 生成 Baum–Sweet 序列Generate Baum–Sweet Sequence🔢 生成 Gijswijts 序列Generate Gijswijts Sequence👀 生成外观数列(读数序列)Generate Look-and-Say Sequence𝑳 生成卢卡斯数Generate Lucas Numbers𝑳′ 生成卢卡斯质数Generate Lucas Primes⬚ 生成 Moser–de Bruijn 序列Generate Moser–de Bruijn Sequence−𝐹 生成负斐波那契数Generate NegaFibonacci Numbers−𝑳 生成负卢卡斯数Generate NegaLucas Numbers1️⃣ 生成奇数Generate Odd Numbers📄 生成折纸序列Generate Paperfolding Sequence🎲 生成随机矩阵Generate Random Matrix± 生成 Rudin–Shapiro 序列Generate Rudin–Shapiro Sequence

← 全部工具All tools