login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A212323
a(n) = 3^n - Fibonacci(n).
3
1, 2, 8, 25, 78, 238, 721, 2174, 6540, 19649, 58994, 177058, 531297, 1594090, 4782592, 14348297, 43045734, 129138566, 387417905, 1162257286, 3486777636, 10460342257, 31381041898, 94143150170, 282429490113, 847288534418, 2541865706936, 7625597288569
OFFSET
0,2
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 21 08:46 EDT 2024. Contains 376084 sequences. (Running on oeis4.)