OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (4, -4, -1, 2).
FORMULA
From R. J. Mathar, Jul 07 2009: (Start)
a(n) = 4*a(n-1) - 4*a(n-2) - a(n-3) + 2*a(n-4).
G.f.: -x*(1+x-7*x^2+4*x^3)/((x-1)*(2*x-1)*(x^2+x-1)). (End)
MAPLE
with(combinat, fibonacci): seq(2^n - 1 + 2 * fibonacci(n - 1), n=1..10);
MATHEMATICA
Table[2^n-1+2*Fibonacci[n-1], {n, 40}] (* or *) LinearRecurrence[{4, -4, -1, 2}, {1, 5, 9, 19}, 40] (* Harvey P. Dale, Jul 30 2017 *)
PROG
(PARI) { for (n=1, 200, write("b060161.txt", n, " ", 2^n - 1 + 2*fibonacci(n - 1)); ) } \\ Harry J. Smith, Jul 02 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Pieter Gosselink (pieter_gosselink(AT)lotus.com), Mar 12 2001
EXTENSIONS
More terms from Asher Auel, Mar 16 2001
STATUS
approved