OFFSET
0,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..500
Mattia Fregola, Elementary Cellular Automata Rule 1 generating OEIS sequence A277799, A058896, A141725, A002450
Index entries for linear recurrences with constant coefficients, signature (5, -4).
FORMULA
G.f.: 3*(5*x - 1)/(1 - x)/(1 - 4*x).
From Elmo R. Oliveira, Nov 16 2023 (Start)
a(n) = 5*a(n-1) - 4*a(n-2) for n > 1.
E.g.f.: exp(4*x) - 4*exp(x). (End)
MAPLE
seq(4^n-4, n=0..25); # Muniru A Asiru, Mar 09 2018
MATHEMATICA
Array[4^# - 4 &, 26, 0] (* Michael De Vlieger, Feb 18 2018 *)
PROG
(PARI) { f=1; for (n = 0, 500, write("b058896.txt", n, " ", f-4); f*=4; ) } \\ Harry J. Smith, Jun 23 2009
(GAP) List([0..25], n->4^n-4); # Muniru A Asiru, Mar 09 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Henry Bottomley, Jan 08 2001
STATUS
approved