TOPICS
Search

Rule 30


ElementaryCARule030

Rule 30 is one of the elementary cellular automaton rules introduced by Stephen Wolfram in 1983 (Wolfram 1983, 2002). It specifies the next color in a cell, depending on its color and its immediate neighbors. Its rule outcomes are encoded in the binary representation 30=00011110_2. This rule is illustrated above together with the evolution of a single black cell it produces after 15 steps (Wolfram 2002, p. 55).

Rule 30 after 250 iterations

250 iterations of rule 30 are illustrated above.

Starting with a single black cell on an otherwise white infinite row, successive generations n=0, 1, ... are given by interpreting the numbers 1, 7, 25, 111, 401, 1783, 6409, 28479, 102849, ... (OEIS A110240) in binary, namely 1, 111, 11001, 1101111, 110010001, ... (OEIS A070950).

Rule 30 is the mirror image, complement, and mirror complement of rules 86, 135, and 149, respectively.

Rule 30 is of special interest because it is chaotic (Wolfram 2002, p. 871), with central column given by 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, ... (OEIS A051023). Rule 30 was used for integer random number generation in versions of Mathematica prior to 6.0 (Wolfram 2002, p. 317). It remains available as the "Rule30CA" method in the Wolfram Language, whose default generator is "ExtendedCA" (Wolfram Research). Interpreting the central column as binary numbers and taking successive bits gives the sequence of numbers 1, 3, 6, 13, 27, 55, 110, 220, 441, 883, 1766, ... (OEIS A092539). The members of this sequence that are prime are 3, 13, 883, 237051898781, ... (OEIS A092540).

Rule30RowCounts

Jen (1990) proved that with the initial state of a single black cell, the sequence of ordered pairs of colors attained in any two adjacent cells is not ultimately periodic (Gray 2003). The numbers of black cells b(n) in consecutive generations n=0, 1, ... are 1, 3, 3, 6, 4, 9, 5, 12, 7, ... (OEIS A070952), which is very closely fit by the line b(n)=n.

Wolfram (2019) announced the Rule 30 prize problems, offering $10,000 each for questions concerning nonperiodicity, equal limiting frequencies, and the computation time required to determine the central column.

The maximum lengths of white runs between the outermost black cells at generations 0, 1, 2, ... are 0, 0, 2, 1, 3, 1, 4, 2, 5, 3, 4, 4, 3, 2, ... (OEIS A100053). The high-water marks are 0, 2, 3, 4, 5, 6, 8, 9, 11, 14, 15, 23, ... (OEIS A100054), which occur at positions 0, 2, 4, 6, 8, 16, 32, 43, 46, 64, 128, 256, 512, ... (OEIS A100055; Weisstein, Oct. 31, 2004) and look suspiciously like powers of 2 with a few additional values thrown in near the beginning.

Rule30BlackCells

An independent observation by E. Rowland (May 13, 2004) is that the sequence of lengths of the rightmost contiguous black runs is 1, 3, 1, 4, 1, 3, 1, 6, 1, 3, 1, 4, 1, 3, 1, 7, 1, 3, 1, 4, ... (OEIS A094603), with high-water marks of 1, 3, 4, 6, 7, 9, 15, 16, 24, 25, 27, ... (OEIS A094604) at generations 0, 1, 3, 7, 15, ... (OEIS A000225; i.e., 2^n-1; Rowland 2006).


See also

Computational Irreducibility, Elementary Cellular Automaton, Rule 30 Prize Problems, Rule 50, Rule 54, Rule 60, Rule 62, Rule 90, Rule 94, Rule 102, Rule 110, Rule 126, Rule 150, Rule 158, Rule 182, Rule 188, Rule 190, Rule 220, Rule 222

Related Wolfram sites

https://atlas.wolfram.com/01/01/30/

Explore with Wolfram|Alpha

References

Gray, L. "A Mathematician Looks at Wolfram's New Kind of Science." Not. Amer. Math. Soc. 50, 200-211, 2003.Jen, E. "Aperiodicity in One-Dimensional Cellular Automata." Physica D 45, 3-18, 1990. https://doi.org/10.1016/0167-2789(90)90169-P.Rowland, E. "Local Nested Structure in Rule 30." Complex Systems 16, 239-258, 2006. https://doi.org/10.25088/ComplexSystems.16.3.239.Rowland, E. "The Hidden Structure of Rule 30." Aug. 14, 2026. https://www.youtube.com/watch?v=HcGjCcLEgN4.Sloane, N. J. A. Sequences A000225/M2655, A051023, A070950, A070952, A092539, A092540, A094603, A094604, A100053, A100054, A100055, and A110240 in "The On-Line Encyclopedia of Integer Sequences."Wolfram, S. "Statistical Mechanics of Cellular Automata." Rev. Mod. Phys. 55, 601-644, 1983.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, pp. 29-30, 52, 59, 317, and p. 871, 2002.Wolfram, S. "Announcing the Rule 30 Prizes." Oct. 1, 2019. https://writings.stephenwolfram.com/2019/10/announcing-the-rule-30-prizes/.Wolfram Research. "Random Number Generation." https://reference.wolfram.com/language/tutorial/RandomNumberGeneration.html.

Referenced on Wolfram|Alpha

Rule 30

Cite this as:

Weisstein, Eric W. "Rule 30." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Rule30.html

Subject classifications