OFFSET
1,2
COMMENTS
Number of cells turned ON in n-th generation of cellular automaton based on Z^3 lattice in the same way that A147562 is based on the Z^2 lattice. Here each cell has six neighbors.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
David Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, Congressus Numerantium, Vol. 206 (2010), 157-191
N. J. A. Sloane, Catalog of Toothpick and Cellular Automata Sequences in the OEIS
MAPLE
wt := proc(n) local w, m, i; w := 0; m := n; while m > 0 do i := m mod 2; w := w+i; m := (m-i)/2; od; w; end:
f:=d->[seq((2*d)*(2*d-1)^(wt(n-1)-1), n=2..120)];
f2:=d->[1, op(f(d))];
f2(3);
MATHEMATICA
Join[{1}, 6*5^(DigitSum[Range[100], 2] - 1)] (* Paolo Xausa, Feb 18 2026 *)
PROG
(PARI) a(n)=6*5^(hammingweight(n-1)-1)\1 \\ Charles R Greathouse IV, Mar 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 25 2009
STATUS
approved
