The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A269161 Formula for Wolfram's Rule 86 cellular automaton: a(n) = 4n XOR (2n OR n). 11
0, 7, 14, 11, 28, 27, 22, 19, 56, 63, 54, 51, 44, 43, 38, 35, 112, 119, 126, 123, 108, 107, 102, 99, 88, 95, 86, 83, 76, 75, 70, 67, 224, 231, 238, 235, 252, 251, 246, 243, 216, 223, 214, 211, 204, 203, 198, 195, 176, 183, 190, 187, 172, 171, 166, 163, 152, 159, 150, 147, 140, 139, 134, 131, 448, 455, 462, 459 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
The sequence is injective: no value occurs more than once.
Fibbinary numbers (A003714) give all integers n>=0 for which a(n) = A048727(n) and for which a(n) = A269160(n).
LINKS
Eric Weisstein's World of Mathematics, Rule 30
FORMULA
a(n) = 4n XOR (2n OR n) = A003987(4*n, A003986(2*n, n)).
a(n) = 4*n XOR A163617(n).
Other identities. For all n >= 0:
a(2*n) = 2*a(n).
a(n) = A057889(A269160(A057889(n))). [Rule 86 is the mirror image of rule 30.]
MATHEMATICA
a[n_] := BitXor[4n, BitOr[2n, n]]; Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Feb 23 2016 *)
PROG
(Scheme) (define (A269161 n) (A003987bi (* 4 n) (A003986bi (* 2 n) n))) ;; Where A003986bi and A003987bi are implementation of dyadic functions giving bitwise-OR (A003986) and bitwise-XOR (A003987) of their arguments.
(Python)
def A269161(n): return n<<2 ^ (n<<1 |n) # Chai Wah Wu, Jun 29 2022
CROSSREFS
Cf. A265281 (iterates starting from 1).
Cf. also A048727, A269160.
Sequence in context: A048727 A295123 A196178 * A307964 A225556 A064666
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 20 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 13:17 EDT 2024. Contains 372552 sequences. (Running on oeis4.)