OFFSET
0,3
COMMENTS
Also (omitting initial 0) number of 1's in n-th row of triangle in A071038, that is, number of ON cells at generation n of CA defined by Rule 182.
REFERENCES
S. Wolfram, A New Kind of Science, Wolfram Media, 2002; Chapter 3.
LINKS
Robert Price, Table of n, a(n) for n = 0..999
A. J. Macfarlane, Generating functions for integer sequences defined by the evolution of cellular automata...
S. Wolfram, Statistical mechanics of cellular automata, Rev. Mod. Phys., 55 (1983), 601--644.
FORMULA
a(2n) = a(n) + 2n, a(2n+1) = 2a(n) + 1. - Ralf Stephan, Oct 07 2003
MATHEMATICA
Map[Function[Apply[Plus, Flatten[#1]]],
CellularAutomaton[182, {{1}, 0}, 100]] (* N. J. A. Sloane, Feb 17 2015 *)
PROG
(PARI) a(n)=2*n-2^hammingweight(n)+1; \\ Altug Alkan, Dec 05 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Hans Havermann, May 26 2002
STATUS
approved