OFFSET
1,2
COMMENTS
Also positive integers x in the solutions to x^2 - 10*y^2 + x + 10*y - 2 = 0, the corresponding values of y being A280112.
LINKS
Colin Barker, Table of n, a(n) for n = 1..600
Index entries for linear recurrences with constant coefficients, signature (39,-39,1).
FORMULA
a(n) = (-2 - (3+sqrt(10))*(19+6*sqrt(10))^(-n) + (-3+sqrt(10))*(19+6*sqrt(10))^n) / 4.
a(n) = 39*a(n-1) - 39*a(n-2) + a(n-3) for n>3.
G.f.: x*(1 + 19*x - 2*x^2) / ((1 - x)*(1 - 38*x + x^2)).
EXAMPLE
58 is in the sequence because the 58th triangular number is 1711, which is also the 19th centered 10-gonal number.
MATHEMATICA
Table[Simplify[(-2 - (3 + #) (19 + 6 #)^(-n) + (-3 + #) (19 + 6 #)^n)/4] &@ Sqrt@ 10, {n, 17}] (* or *)
Rest@ CoefficientList[Series[x (1 + 19 x - 2 x^2)/((1 - x) (1 - 38 x + x^2)), {x, 0, 17}], x] (* Michael De Vlieger, Dec 26 2016 *)
PROG
(PARI) Vec(x*(1 + 19*x - 2*x^2) / ((1 - x)*(1 - 38*x + x^2)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Dec 26 2016
STATUS
approved
