OFFSET
1,7
FORMULA
a(n) = sum(k=1..n, (sum(j=0..k, binomial(j,n-k-j)*binomial(k,j)) * binomial(n-k-2,k-1))/k).
D-finite with recurrence: (n-1)*n*a(n) = 6*(n-8)*(n-7)*a(n-7) + 2*(5+7*(n-7))*(n-7)*a(n-6) + (24+43*(n-7)+15*(n-7)^2)*a(n-5) + (84+63*(n-7)+11*(n-7)^2)*a(n-4) + (90+40*(n-7)+4*(n-7)^2)*a(n-3) + (30+ 6*(n-7))*a(n-2) - (n-2)*(n-1)*a(n-1). - Benedict W. J. Irwin, Sep 25 2016
D-finite with recurrence: n*a(n) = -a(n-1) + (2*n - 5)*a(n-2) + (4*n - 17)*a(n-3) + 3*(n-5)*a(n-4). - Vaclav Kotesovec, Sep 25 2016
MATHEMATICA
Rest[CoefficientList[Series[(1+z(2+z)-Sqrt[-(1+z)(-1+z+z^2+3z^3)])/(2(1+z)), {z, 0, 30}], z]] (* Benedict W. J. Irwin, Sep 25 2016 *)
PROG
(Maxima)
a(n):=sum(((sum(binomial(j, n-k-j)*binomial(k, j), j, 0, k))*binomial(n-k-2, k-1))/k, k, 1, n);
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Kruchinin, Nov 21 2014
STATUS
approved