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!)
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
S. Wolfram, Statistical mechanics of cellular automata, Rev. Mod. Phys., 55 (1983), 601--644.
FORMULA
a(n) = 2n + 1 - A001316(n) = n + A048967(n).
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
Sequence in context: A107470 A228325 A327122 * A128053 A063212 A241274
KEYWORD
nonn
AUTHOR
Hans Havermann, May 26 2002
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 April 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)