OFFSET
0,2
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, 1276, 0, 0, 0, 0, 0, -1).
FORMULA
G.f.: -(x^10-2*x^9+3*x^8-5*x^7+8*x^6-21*x^5-8*x^4-5*x^3-3*x^2-2*x-1) / (x^12-1276*x^6+1). - Colin Barker, Dec 23 2013
a(n) = 1276*a(n-6) - a(n-12) for n>11. - Vincenzo Librandi, Dec 23 2013
MAPLE
convert(sqrt(923), confrac, 30, cvgts): denom(cvgts); # Wesley Ivan Hurt, Dec 23 2013
MATHEMATICA
Denominator[Convergents[Sqrt[923], 30]] (* Wesley Ivan Hurt, Dec 23 2013 *)
CoefficientList[Series[-(x^10 - 2 * x^9 + 3 * x^8 - 5 * x^7 + 8 * x^6 - 21 * x^5 - 8 * x^4 - 5 * x^3 - 3 * x^2 - 2 * x - 1)/(x^12 - 1276 * x^6 + 1), {x, 0, 30}], x] (* Vincenzo Librandi, Dec 23 2013 *)
LinearRecurrence[{0, 0, 0, 0, 0, 1276, 0, 0, 0, 0, 0, -1}, {1, 2, 3, 5, 8, 21, 1268, 2557, 3825, 6382, 10207, 26796}, 30] (* Harvey P. Dale, Jul 04 2017 *)
PROG
(Magma) I:=[1, 2, 3, 5, 8, 21, 1268, 2557, 3825, 6382, 10207, 26796]; [n le 12 select I[n] else 1276*Self(n-6)-Self(n-12): n in [1..40]]; // Vincenzo Librandi, Dec 23 2013
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Dec 23 2013
STATUS
approved