OFFSET
0,2
COMMENTS
Let x(n) = (1/2)*(-(2*n+1) + sqrt((2*n+1)^2 + 4)) and f(k) = (-1)*(Sum_{i=1..k} Sum_{j=1..i} (-1)^floor(j*x(n))), then a(n) = Max{f(k): 0 < k < A094200(n)}.
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
G.f.: (37*x^4 + 206*x^3 + 198*x^2 + 38*x + 1)/(x - 1)^6. - Jinyuan Wang, Apr 06 2020
MATHEMATICA
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {1, 44, 447, 2248, 7685, 20676}, 30] (* Harvey P. Dale, Oct 23 2021 *)
PROG
(PARI) a(n)=4*n^5+10*n^4+13*n^3+11*n^2+5*n+1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, May 25 2004
EXTENSIONS
Corrected by T. D. Noe, Nov 09 2006
STATUS
approved