OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
David Singmaster, On the cellular automaton of Ulam and Warburton, M500 Magazine of the Open University, #195 (December 2003), pp. 2-7. Also cached copy, included with permission.
Index entries for linear recurrences with constant coefficients, signature (7,-14,8).
FORMULA
a(n) = 2^n + (4^n - 1)/3, n>=0.
a(n) = Sum_{i = 0..2^n - 1} A079314(i).
G.f.: (1-4*x+2*x^2)/((1-x)*(1-2*x)*(1-4*x)).
From Elmo R. Oliveira, Nov 13 2025: (Start)
E.g.f.: exp(x)*(exp(3*x) + 3*exp(x) - 1)/3.
a(n) = 7*a(n-1) - 14*a(n-2) + 8*a(n-3). (End)
MATHEMATICA
A079319list[nmax_]:=LinearRecurrence[{7, -14, 8}, {1, 3, 9}, nmax+1]; A079319list[50] (* Paolo Xausa, Jul 30 2023 *)
PROG
(PARI) a(n)=if(n<0, 0, 2^n+(4^n-1)/3)
(Python) A079319=lambda n: 2**n + 4**n//3 # M. F. Hasler, May 28 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 12 2003
STATUS
approved
