OFFSET
0,2
COMMENTS
LINKS
R. J. Mathar, Table of n, a(n) for n = 0..100
Index entries for linear recurrences with constant coefficients, signature (16,-56).
FORMULA
a(n) = 16*a(n-1) - 56*a(n-2) for n>1. - Philippe Deléham, Jan 12 2009
a(n) = ( (8 + 2*sqrt(2))^n - (8 - 2*sqrt(2))^n )/(4*sqrt(2)).
G.f.: 1/(1 - 16*x + 56*x^2). - Klaus Brockhaus, Jan 12 2009; corrected Oct 08 2009
E.g.f.: (1/(2*sqrt(2)))*exp(8*x)*sinh(2*sqrt(2)*x). - G. C. Greubel, Sep 13 2016
MATHEMATICA
Join[{a=1, b=16}, Table[c=16*b-56*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Feb 08 2011*)
LinearRecurrence[{16, -56}, {1, 16}, 30] (* Harvey P. Dale, Aug 31 2016 *)
PROG
(Magma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-2); S:=[ ((8+2*r)^n-(8-2*r)^n)/(4*r): n in [1..18] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jan 12 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Jan 07 2009
EXTENSIONS
Extended beyond a(7) by Klaus Brockhaus, Jan 12 2009
Edited by Klaus Brockhaus, Oct 08 2009
Offset corrected. - R. J. Mathar, Jun 19 2021
STATUS
approved