cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A269174 Formula for Wolfram's Rule 124 cellular automaton: a(n) = (n OR 2n) AND ((n XOR 2n) OR (n XOR 4n)).

Original entry on oeis.org

0, 3, 6, 7, 12, 15, 14, 11, 24, 27, 30, 31, 28, 31, 22, 19, 48, 51, 54, 55, 60, 63, 62, 59, 56, 59, 62, 63, 44, 47, 38, 35, 96, 99, 102, 103, 108, 111, 110, 107, 120, 123, 126, 127, 124, 127, 118, 115, 112, 115, 118, 119, 124, 127, 126, 123, 88, 91, 94, 95, 76, 79, 70, 67, 192, 195, 198, 199, 204, 207, 206, 203, 216
Offset: 0

Views

Author

Antti Karttunen, Feb 22 2016

Keywords

Crossrefs

Cf. A269175.
Cf. A269176 (numbers not present in this sequence).
Cf. A269177 (same sequence sorted into ascending order, duplicates removed).
Cf. A269178 (numbers that occur only once).
Cf. A267357 (iterates from 1 onward).

Programs

Formula

a(n) = A163617(n) AND A269173(n).
a(n) = A163617(n) AND (A048724(n) OR A048725(n)).
a(n) = (n OR 2n) AND ((n XOR 2n) OR (n XOR 4n)).
Other identities. For all n >= 0:
a(2*n) = 2*a(n).
a(n) = A057889(A161903(A057889(n))). [Rule 124 is the mirror image of rule 110.]
G.f.: (-3*x^3 - 2*x^2 - 3*x)/(x^4 - 1) + Sum_{k>=1}((2^(k + 1)*x^(2^k) - 2^(k + 1)*x^(14*2^(k - 2)))/((x^(2^(k + 2)) - 1)*(x - 1))). - Miles Wilson, Jan 25 2025

A352528 The binary expansion of a(n) is obtained by applying the elementary cellular automaton with rule (2*n) mod 256 to the binary expansion of n.

Original entry on oeis.org

0, 1, 1, 2, 0, 4, 2, 6, 2, 11, 5, 12, 5, 12, 4, 12, 0, 17, 9, 26, 4, 21, 14, 30, 2, 19, 3, 18, 9, 25, 8, 24, 0, 33, 17, 50, 0, 36, 19, 54, 2, 35, 21, 52, 7, 38, 21, 52, 8, 41, 9, 42, 28, 61, 31, 62, 6, 39, 7, 38, 19, 51, 17, 48, 0, 65, 33, 98, 0, 68, 34, 103
Offset: 0

Views

Author

Rémy Sigrist, Mar 19 2022

Keywords

Comments

The binary digit of a(n) at place value 2^k is a function of the binary digits of n at place values 2^(k+2), 2^(k+1) and 2^k (and of (2*n) mod 256).
We use even elementary cellular automaton rules, so "000" will always evolve to "0", and the binary expansion of a(n) will have finitely many 1's and will be correctly defined.

Examples

			For n = 13:
- we apply rule 26,
- the binary expansion of 26 being "00011010", we apply the following evolutions:
      111 110 101 100 011 010 001 000
       0   0   0   1   1   0   1   0
- the binary expansion of 13 (with leading zeros) is   "...0001101",
- the binary digit of a(13) at place value 2^0 is 0 (from     "101"),
- the binary digit of a(13) at place value 2^1 is 0 (from    "110"),
- the binary digit of a(13) at place value 2^2 is 1 (from   "011"),
- the binary digit of a(13) at place value 2^3 is 1 (from  "001"),
- the other binary digits of a(13)            are 0 (from "000"),
- so the binary expansion of a(13) is "1100",
- so a(13) = 12.
		

Crossrefs

Programs

  • PARI
    a(n) = { my (v=0, m=n); for (k=0, oo, if (m==0, return (v), bittest(2*n, m%8), v+=2^k); m\=2) }
Showing 1-2 of 2 results.