OFFSET
3,4
LINKS
Ivan Neretin, Table of n, a(n) for n = 3..10000
FORMULA
Empirical g.f.: x^5*(x^7-2*x^6+2*x^5-2*x^4+x^3-x^2+x-1) / ((x-1)^3*(x^2+1)*(x^4+1)). - Colin Barker, Aug 16 2014
a(n) = floor((n - 3)*(15n^3 + 15n^2 - 10n - 8)/(120*n*(n + 1))). - Ivan Neretin, Nov 25 2016
a(n) = floor((A000217(n-2)/2 - 1)/2) = floor((n^2 - 3*n - 2)/8), n >= 4. - Ralf Steiner, Oct 25 2021
EXAMPLE
G.f. = x^5 + 2*x^6 + 3*x^7 + 4*x^8 + 6*x^9 + 8*x^10 + 10*x^11 + 13*x^12 + ...
MATHEMATICA
Table[Floor[(n - 3) (15 n^3 + 15 n^2 - 10 n - 8)/(120 n (n + 1))], {n, 3, 45}] (* Ivan Neretin, Nov 25 2016 *)
Insert[Table[Floor[1/8 (-2 - 3 n + n^2)], {n, 4, 45}], 0, 1] (* Ralf Steiner, Oct 27 2021 *)
PROG
(PARI) {a(n) = if( n<4, 0, (n-3) * (15*n^3 + 15*n^2 - 10*n - 8) \ (120 * n * (n+1)))}; /* Michael Somos, Nov 25 2016 */
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset set to 3 by R. J. Mathar, Sep 23 2016
STATUS
approved