OFFSET
0,2
LINKS
Bruno Berselli, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-2,-3).
FORMULA
G.f.: (1 - 2*x + 2*x^2)/((1 - 3*x)*(1 - x - x^2)).
MATHEMATICA
Table[3^n - Fibonacci[n], {n, 0, 27}]
LinearRecurrence[{4, -2, -3}, {1, 2, 8}, 30] (* Harvey P. Dale, Dec 08 2023 *)
PROG
(PARI) for(n=0, 27, print1(3^n-fibonacci(n)", "));
(Magma) [3^n-Fibonacci(n): n in [0..27]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, May 09 2012
STATUS
approved