OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..416
Index entries for linear recurrences with constant coefficients, signature (1,64514,-64514,-1,1).
FORMULA
G.f.: -7*x*(1968*x^4+1813*x^3-195857*x^2+35*x+41) / ((x-1)*(x^2-254*x+1)*(x^2+254*x+1)).
EXAMPLE
287 is in the sequence because P(14) = 287 = 5+12+22+35+51+70+92 = P(2)+ ... +P(8).
MATHEMATICA
LinearRecurrence[{1, 64514, -64514, -1, 1}, {287, 532, 17145051, 32963672, 1106094475927}, 20] (* Harvey P. Dale, May 13 2022 *)
PROG
(PARI) Vec(-7*x*(1968*x^4+1813*x^3-195857*x^2+35*x+41)/((x-1)*(x^2-254*x+1)*(x^2+254*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 26 2015
STATUS
approved