OFFSET
0,1
COMMENTS
lim_{n -> infinity} a(n+1)/a(n) = 3+2*sqrt(2).
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-7,1).
FORMULA
a(n) = 6*a(n-1) - a(n-2) + 34 for n > 1; a(0) = 7, a(1) = 88.
a(n) = ((31+25*sqrt(2))*(3+2*sqrt(2))^n + (31-25*sqrt(2))*(3-2*sqrt(2))^n - 34)/4.
G.f.: (7+39*x-12*x^2)/((1-x)*(1-6*x+x^2)).
MATHEMATICA
LinearRecurrence[{7, -7, 1}, {7, 88, 555}, 30] (* Harvey P. Dale, Apr 29 2012 *)
Table[(3*LucasL[2*n+3, 2] + 10*LucasL[2*n+1, 2] - 34)/4, {n, 0, 50}] (* G. C. Greubel, Aug 21 2018 *)
PROG
(PARI) {m=20; v=concat([7, 88, 555], vector(m-3)); for(n=4, m, v[n]=7*v[n-1]-7*v[n-2]+v[n-3]); v}
(Magma) I:=[7, 88, 555]; [n le 3 select I[n] else 7*Self(n-1) - 7*Self(n-2) + Self(n-3): n in [1..50]]; // G. C. Greubel, Aug 21 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Jan 30 2009
EXTENSIONS
Comment and recursion formula added, cross-references edited by Klaus Brockhaus, Sep 23 2009
STATUS
approved
