OFFSET
1,2
COMMENTS
Also positive integers y in the solutions to x^2 - 7*y^2 + x + 7*y - 2 = 0, the corresponding values of x being A253878.
LINKS
Colin Barker, Table of n, a(n) for n = 1..832
Index entries for linear recurrences with constant coefficients, signature (17,-17,1).
FORMULA
a(n) = 17*a(n-1)-17*a(n-2)+a(n-3).
G.f.: x*(8*x-1) / ((x-1)*(x^2-16*x+1)).
a(n) = (14-(8-3*sqrt(7))^n*(7+3*sqrt(7))+(-7+3*sqrt(7))*(8+3*sqrt(7))^n)/28. - Colin Barker, Mar 04 2016
EXAMPLE
9 is in the sequence because the 9th centered heptagonal number is 253, which is also the 22nd triangular number.
PROG
(PARI) Vec(x*(8*x-1)/((x-1)*(x^2-16*x+1)) + O(x^100))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jan 17 2015
STATUS
approved