%I #56 Dec 21 2022 20:12:57
%S 1,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,
%T 131071,262143,524287,1048575,2097151,4194303,8388607,16777215,
%U 33554431,67108863,134217727,268435455,536870911,1073741823,2147483647,4294967295
%N 1 together with the positive terms of A000225.
%C Also, right border of A246674 arranged as an irregular triangle.
%C Essentially the same as A168604, A126646 and A000225.
%C Total number of lambda-parking functions induced by all partitions of n. a(0)=1: [], a(1)=1: [1], a(2)=3: [1], [2], [1,1], a(4)=7: [1], [2], [3], [1,1], [1,2], [2,1], [1,1,1]. - _Alois P. Heinz_, Dec 04 2015
%C Also, the decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 645", based on the 5-celled von Neumann neighborhood, initialized with a single black (ON) cell at stage zero. - _Robert Price_, Jul 19 2017
%C Also number of multiset partitions of {1,1} U [n] into exactly 2 nonempty parts. a(2) = 3: 111|2, 11|12, 1|112. - _Alois P. Heinz_, Aug 18 2017
%C Also, the number of unlabeled connected P-series (equivalently, connected P-graphs) with n+1 elements. - _Salah Uddin Mohammad_, Nov 19 2021
%D S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 170.
%H Vincenzo Librandi, <a href="/A255047/b255047.txt">Table of n, a(n) for n = 0..1000</a>
%H N. J. A. Sloane, <a href="http://arxiv.org/abs/1503.01168">On the Number of ON Cells in Cellular Automata</a>, arXiv:1503.01168 [math.CO], 2015.
%H R. Stanley, <a href="http://math.mit.edu/~rstan/transparencies/parking.pdf">Parking Functions</a>, 2011.
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/ElementaryCellularAutomaton.html">Elementary Cellular Automaton</a>
%H S. Wolfram, <a href="http://wolframscience.com/">A New Kind of Science</a>
%H Wolfram Research, <a href="http://atlas.wolfram.com/">Wolfram Atlas of Simple Programs</a>
%H <a href="/index/Ce#cell">Index entries for sequences related to cellular automata</a>
%H <a href="https://oeis.org/wiki/Index_to_2D_5-Neighbor_Cellular_Automata">Index to 2D 5-Neighbor Cellular Automata</a>
%H <a href="https://oeis.org/wiki/Index_to_Elementary_Cellular_Automata">Index to Elementary Cellular Automata</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (3,-2).
%F From _Alois P. Heinz_, Feb 19 2015: (Start)
%F O.g.f.: (1 -2*x +2*x^2)/((1-x)*(1-2*x)).
%F E.g.f.: exp(2*x) - exp(x) + 1. (End)
%F a(n) = A078485(n+1) for n > 2. - _Georg Fischer_, Oct 22 2018
%t CoefficientList[Series[(1 -2*x +2*x^2)/((1-x)*(1-2*x)), {x, 0, 33}], x] (* or *) LinearRecurrence[{3, -2}, {1,1,3}, 40] (* _Vincenzo Librandi_, Jul 20 2017 *)
%t Table[2^n -1 +Boole[n==0], {n, 0, 40}] (* _G. C. Greubel_, Feb 07 2021 *)
%o (Sage) [1]+[2^n -1 for n in (1..40)] # _G. C. Greubel_, Feb 07 2021
%o (Magma) [1] cat [2^n -1: n in [1..40]]; // _G. C. Greubel_, Feb 07 2021
%o (Python)
%o def A255047(n): return -1^(-1<<n) if n else 1 # _Chai Wah Wu_, Dec 21 2022
%Y Cf. A000225, A011782, A028310, A246674, A253909, A265007, A265202, A349276.
%Y Row n=1 of A263159.
%Y Column k=2 of A291117.
%Y Cf. A078485.
%K nonn,easy
%O 0,3
%A _Omar E. Pol_, Feb 15 2015
|