OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..375
W. Y. C. Chen, E. Y. P. Deng and L. L. M. Yang, Riordan paths and derangements, arXiv:math/0602298 [math.CO], 2006.
FORMULA
a(n) = n!*Sum_{k=1..n-1} binomial(n+1, k)*binomial(n-k-1, k-1).
a(n) = (n+1)!*A005043(n).
MATHEMATICA
a[n_] := (-1)^n (n+1)! Hypergeometric2F1[-n, 1/2, 2, 4]; Array[a, 17] (* Jean-François Alcover, Feb 17 2019 *)
PROG
(Magma)
A128614:= func< n | n eq 1 select 0 else Factorial(n)*(&+[Binomial(n+1, k)*Binomial(n-k-1, k-1): k in [1..n-1]]) >;
[A128614(n): n in [1..40]]; // G. C. Greubel, Mar 26 2024
(SageMath)
def A128614(n): return factorial(n)*sum(binomial(n+1, k)*binomial(n-k-1, k-1) for k in range(1, n))
[A128614(n) for n in range(1, 41)] # G. C. Greubel, Mar 26 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, May 08 2007
STATUS
approved