OFFSET
0,1
COMMENTS
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..400
Index entries for linear recurrences with constant coefficients, signature (4,1).
FORMULA
a(n) = 4*a(n-1)+a(n-2) for n > 1; a(0) = 3, a(1) = 11.
G.f.: (3-x)/(1-4*x-x^2).
a(n) = ((3+sqrt(5))*(2+sqrt(5))^n+(3-sqrt(5))*(2-sqrt(5))^n)/2.
a(n) = A000032(3*n+2), n>=0, (Lucas trisection). - Wolfdieter Lang, Mar 09 2011.
a(n) = 5*F(n)*F(n+1)*L(n+1) + L(n+2)*(-1)^n with F(n)=A000045(n) and L(n)=A000032(n). - J. M. Bergot, Dec 10 2015
MAPLE
with(combinat):A163063:=proc(n)return fibonacci(3*n+1) + fibonacci(3*n+3): end:seq(A163063(n), n=0..21); # Nathaniel Johnston, Apr 18 2011
MATHEMATICA
Table[Fibonacci[3n + 1] + Fibonacci[3n + 3], {n, 0, 21}] (* Alonso del Arte, Nov 29 2010 *)
LinearRecurrence[{4, 1}, {3, 11}, 30] (* Harvey P. Dale, Apr 14 2021 *)
PROG
(Magma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-5); S:=[ ((3+r)*(2+r)^n+(3-r)*(2-r)^n)/2: n in [0..21] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jul 21 2009
(Magma) [Lucas(3*n+2): n in [0..30]]; // Vincenzo Librandi, Apr 18 2011
(PARI) Vec((3-x)/(1-4*x-x^2) + O(x^100)) \\ Altug Alkan, Dec 10 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Jul 20 2009
EXTENSIONS
Edited and extended beyond a(5) by Klaus Brockhaus, Jul 21 2009
STATUS
approved