OFFSET
1,2
COMMENTS
Also positive integers y in the solutions to 9*x^2 - 11*y^2 - 7*x + 11*y - 2 = 0, the corresponding values of x being A280071.
LINKS
Colin Barker, Table of n, a(n) for n = 1..750
Index entries for linear recurrences with constant coefficients, signature (21,-21,1).
FORMULA
a(n) = (6 - (3+sqrt(11))*(10+3*sqrt(11))^(-n) + (-3+sqrt(11))*(10+3*sqrt(11))^n)/12.
a(n) = 21*a(n-1) - 21*a(n-2) + a(n-3) for n>3.
G.f.: x*(1 - 10*x) / ((1 - x)*(1 - 20*x + x^2)).
EXAMPLE
11 is in the sequence because the 11th centered 11-gonal number is 606, which is also the 12th 11-gonal number.
MATHEMATICA
LinearRecurrence[{21, -21, 1}, {1, 11, 210}, 20] (* Harvey P. Dale, Aug 19 2020 *)
PROG
(PARI) Vec(x*(1 - 10*x) / ((1 - x)*(1 - 20*x + x^2)) + O(x^30)) \\ Colin Barker, Dec 25 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Dec 25 2016
STATUS
approved