OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (0,64).
FORMULA
a(n) = (7*8^n + (-8)^n)/8.
G.f.: (1+6*x)/((1+8*x)*(1-8*x)).
E.g.f.: (7*exp(8*x) + exp(-8*x))/8.
a(n) = 64*a(n-2); a(0)=1, a(1)=6. - Harvey P. Dale, Apr 22 2012
MATHEMATICA
Table[(7*8^n+(-8)^n)/8, {n, 0, 20}] (* or *) LinearRecurrence[{0, 64}, {1, 6}, 20] (* Harvey P. Dale, Apr 22 2012 *)
PROG
(Magma) [(7*8^n+(-8)^n)/8: n in [0..25]]; // Vincenzo Librandi, Jun 29 2011
(PARI) a(n)= (7*8^n+(-8)^n)/8 \\ Charles R Greathouse IV, Jun 29 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 23 2003
STATUS
approved