OFFSET
0,2
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000 [extending from n(164) by Vincenzo Librandi]
Martin Burtscher, Igor Szczyrba and RafaĆ Szczyrba, Analytic Representations of the n-anacci Constants and Generalizations Thereof, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.5.
Index entries for linear recurrences with constant coefficients, signature (4,4).
FORMULA
a(n) = 4*a(n-1) + 4*a(n-2) for n > 1; a(0) = 1, a(1) = 8.
a(n) = ((2+3*sqrt(2))*(2+2*sqrt(2))^n + (2-3*sqrt(2))*(2-2*sqrt(2))^n)/4.
G.f.: (1 + 4*x)/(1 - 4*x - 4*x^2).
a(n) = (2*i)^n*( ChebyshevU(n, -i) - 2*i*ChebyshevU(n-1, -i) ). - G. C. Greubel, Jul 17 2021
MATHEMATICA
LinearRecurrence[{4, 4}, {1, 8}, 30] (* Harvey P. Dale, Dec 25 2011 *)
PROG
(Magma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-2); S:=[ ((2+3*r)*(2+2*r)^n+(2-3*r)*(2-2*r)^n)/4: n in [0..21] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Aug 19 2009
(Sage) [(2*i)^n*(chebyshev_U(n, -i) - 2*i*chebyshev_U(n-1, -i)) for n in (0..30)] # G. C. Greubel, Jul 17 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Aug 15 2009
EXTENSIONS
Edited and extended beyond a(5) by Klaus Brockhaus, Aug 19 2009
STATUS
approved