OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..300
Index entries for linear recurrences with constant coefficients, signature (1443,-1443,1).
FORMULA
a(n) = 1443*a(n-1) - 1443*a(n-2) + a(n-3) for n>3.
G.f.: x*(1 + 268*x + x^2) / ((1 - x)*(1 - 1442*x + x^2)).
EXAMPLE
1711 is in the sequence because the 58th triangular number is 1711, which is also the 19th centered 10-gonal number.
MATHEMATICA
RecurrenceTable[{a[n] == 1443 a[n - 1] - 1443 a[n - 2] + a[n - 3], a[1] == 1, a[2] == 1711, a[3] == 2467531}, a, {n, 12}] (* or *)
Rest@ CoefficientList[Series[x (1 + 268 x + x^2)/((1 - x) (1 - 1442 x + x^2)), {x, 0, 12}], x] (* Michael De Vlieger, Dec 26 2016 *)
LinearRecurrence[{1443, -1443, 1}, {1, 1711, 2467531}, 20] (* Harvey P. Dale, Dec 29 2017 *)
PROG
(PARI) Vec(x*(1 + 268*x + x^2) / ((1 - x)*(1 - 1442*x + x^2)) + O(x^15))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Dec 26 2016
STATUS
approved
