|
|
A071042
|
|
Number of 0's in n-th row of triangle in A070886.
|
|
3
|
|
|
0, 1, 3, 3, 7, 7, 9, 7, 15, 15, 17, 15, 21, 19, 21, 15, 31, 31, 33, 31, 37, 35, 37, 31, 45, 43, 45, 39, 49, 43, 45, 31, 63, 63, 65, 63, 69, 67, 69, 63, 77, 75, 77, 71, 81, 75, 77, 63, 93, 91, 93, 87, 97, 91, 93, 79, 105, 99, 101, 87, 105, 91, 93, 63, 127, 127, 129, 127
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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
|
|
|
FORMULA
|
a(2n) = a(n) + 2n, a(2n+1) = 2a(n) + 1. - Ralf Stephan, Oct 07 2003
|
|
MATHEMATICA
|
Map[Function[Apply[Plus, Flatten[#1]]],
|
|
PROG
|
(PARI) a(n)=2*n-2^hammingweight(n)+1; \\ Altug Alkan, Dec 05 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|