OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,502,0,0,0,0,1).
FORMULA
G.f.: -(x^8-x^7+4*x^6-13*x^5+17*x^4+13*x^3+4*x^2+x+1) / (x^10+502*x^5-1). - Colin Barker, Nov 17 2013
a(n) = 502*a(n-5) + a(n-10) for n>9. - Vincenzo Librandi, Dec 17 2013
MATHEMATICA
Denominator[Convergents[Sqrt[218], 30]] (* Vincenzo Librandi, Dec 17 2013 *)
LinearRecurrence[{0, 0, 0, 0, 502, 0, 0, 0, 0, 1}, {1, 1, 4, 13, 17, 489, 506, 2007, 6527, 8534}, 30] (* Harvey P. Dale, Jul 26 2014 *)
PROG
(Magma) I:=[1, 1, 4, 13, 17, 489, 506, 2007, 6527, 8534]; [n le 10 select I[n] else 502*Self(n-5)+Self(n-10): n in [1..40]]; // Vincenzo Librandi, Dec 17 2013
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Nov 17 2013
STATUS
approved