OFFSET
1,2
COMMENTS
Also positive integers y in the solutions to 4*x^2 - 7*y^2 - 4*x + 7*y = 0, the corresponding values of x being A253459.
LINKS
Colin Barker, Table of n, a(n) for n = 1..832
Index entries for linear recurrences with constant coefficients, signature (1,254,-254,-1,1).
FORMULA
a(n) = a(n-1)+254*a(n-2)-254*a(n-3)-a(n-4)+a(n-5).
G.f.: -x*(x^4+15*x^3-158*x^2+15*x+1) / ((x-1)*(x^2-16*x+1)*(x^2+16*x+1)).
a(n) = A105040(n) + 1. - Michel Marcus, Mar 12 2024
EXAMPLE
16 is in the sequence because the 16th centered heptagonal number is 841, which is also the 21st centered square number.
PROG
(PARI) Vec(-x*(x^4+15*x^3-158*x^2+15*x+1)/((x-1)*(x^2-16*x+1)*(x^2+16*x+1)) + O(x^100))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jan 01 2015
STATUS
approved