OFFSET
1,2
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,18,0,-1).
FORMULA
G.f.: x*(1 + 11*x + 11*x^2 + x^3)/((1 + 4*x - x^2)*(1 - 4*x - x^2)). - Stefano Spezia, Feb 12 2022
EXAMPLE
29 is in the sequence because 29^2 = 841 is a centered 40-gonal number (the 3rd centered 40-gonal number).
3571^2 = 12752041 is a centered 40-gonal number (the 799th centered 40-gonal number). Hence 3571 is in the sequence.
MAPLE
a[1] := 1: a[2] := 11: a[3] := 29: a[4] := 199: a[5] := 521:
for n from 6 to 25 do a[n] := a[n - 1] + 18*a[n - 2] - 18*a[n - 3] - a[n - 4] + a[n - 5]: od:
seq(a[n], n = 1 .. 25);
MATHEMATICA
LinearRecurrence[{0, 18, 0, -1}, {1, 11, 29, 199}, 25] (* Amiram Eldar, Feb 09 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lamine Ngom, Feb 08 2022
STATUS
approved