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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094688 Convolution of Fibonacci(n) and 3^n. 6
0, 1, 4, 14, 45, 140, 428, 1297, 3912, 11770, 35365, 106184, 318696, 956321, 2869340, 8608630, 25826877, 77482228, 232449268, 697351985, 2092062720, 6276199106, 18828615029, 56485873744, 169457667600, 508373077825, 1525119354868 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
G.f.: x/((1-3*x)*(1-x-x^2)).
a(n) = (1/5)*(3^(n+1) - Lucas(n+2)).
a(n) = 4*a(n-1) - 2*a(n-2) - 3*a(n-3).
a(n) = A101220(3, 3, n). - Ross La Haye, Jan 28 2005
a(n) = a(n-1) + a(n-2) + 3^(n-1) for n > 1, with a(0) = 0, a(1) = 1. - Ross La Haye, Aug 20 2005
a(n) = 3*a(n-1) + Fibonacci(n), where a(0) = 0. - Taras Goy, Mar 24 2019
MATHEMATICA
LinearRecurrence[{4, -2, -3}, {0, 1, 4}, 40] (* Vincenzo Librandi, Jun 24 2012 *)
Table[(3^(n+1) -LucasL[n+2])/5, {n, 0, 40}] (* Vladimir Reshetnikov, Sep 27 2016 *)
PROG
(PARI) a(n)=(3^(n+1)-fibonacci(n+1)-fibonacci(n+3))/5 \\ Charles R Greathouse IV, Jun 28 2011
(Magma) I:=[0, 1, 4]; [n le 3 select I[n] else 4*Self(n-1)-2*Self(n-2) -3*Self(n-3): n in [1..41]]; // Vincenzo Librandi, Jun 24 2012
(SageMath) [(3^(n+1) -lucas_number2(n+2, 1, -1))/5 for n in range(41)] # G. C. Greubel, Feb 09 2023
CROSSREFS
Sequence in context: A108765 A304068 A005775 * A068092 A255678 A153480
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 19 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)