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,0,542,0,0,0,0,0,-1).
FORMULA
G.f.: -(x^4-x^3+2*x^2+x+1)*(x^6-6*x^3-1) / (x^12-542*x^6+1). - Colin Barker, Nov 28 2013
a(n) = 542*a(n-6) - a(n-12) for n>11. - Vincenzo Librandi, Dec 28 2013
MATHEMATICA
Denominator[Convergents[Sqrt[510], 30]] (* Harvey P. Dale, Mar 03 2013 *)
CoefficientList[Series[-(x^4 - x^3 + 2 x^2 + x + 1) (x^6 - 6 x^3 - 1)/(x^12 - 542 x^6 + 1), {x, 0, 30}], x] (* Vincenzo Librandi, Dec 28 2013 *)
PROG
(Magma) I:=[1, 1, 2, 5, 7, 12, 535, 547, 1082, 2711, 3793, 6504]; [n le 12 select I[n] else 542*Self(n-6)-Self(n-12): n in [1..40]]; // Vincenzo Librandi, Dec 28 2013
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Nov 28 2013
STATUS
approved