OFFSET
1,2
COMMENTS
lim_{n -> infinity} a(n)/a(n-1) = 9 + sqrt(3) = 10.73205080756887729....
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (18,-78).
FORMULA
G.f.: x/(1 - 18*x + 78*x^2). - Klaus Brockhaus, Dec 31 2008, (corrected Oct 11 2009)
a(n) = 18*a(n-1) - 78*a(n-2) for n>1; a(0)=0, a(1)=1. - Philippe Deléham, Jan 01 2009
MATHEMATICA
Join[{a=1, b=18}, Table[c=18*b-78*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Feb 09 2011*)
LinearRecurrence[{18, -78}, {1, 18}, 25] (* G. C. Greubel, Aug 22 2016 *)
PROG
(Magma) Z<x>:= PolynomialRing(Integers()); N<r>:=NumberField(x^2-3); S:=[ ((9+r)^n-(9-r)^n)/(2*r): n in [1..18] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Dec 31 2008
(Magma) I:=[1, 18]; [n le 2 select I[n] else 18*Self(n-1)-78*Self(n-2): n in [1..25]]; // Vincenzo Librandi, Aug 23 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Dec 29 2008
EXTENSIONS
Extended beyond a(7) by Klaus Brockhaus, Dec 31 2008
Edited by Klaus Brockhaus, Oct 11 2009
STATUS
approved