OFFSET
0,4
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = Sum_{k=0..floor(n/2)} C(n-k,k)*C(n-k,k+1)/(n-k) * a(k), with a(0)=1.
MATHEMATICA
a[n_]:= a[n]= If[n==0, 1, Sum[Binomial[n-k, k]*Binomial[n-k, k+1]*a[k]/(n-k), {k, 0, Floor[n/2]}]];
Table[a[n], {n, 0, 30}] (* G. C. Greubel, Nov 24 2021 *)
PROG
(PARI) {a(n)=if(n==0, 1, sum(k=0, n\2, binomial(n-k, k)*binomial(n-k, k+1)/(n-k)*a(k)))}
(Sage)
@CachedFunction
def A118928(n):
if (n==0): return 1
else: return sum( binomial(n-k, k)*binomial(n-k, k+1)*A118928(k)/(n-k) for k in (0..n//2) )
[A118928(n) for n in (0..30)] # G. C. Greubel, Nov 24 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, May 06 2006
STATUS
approved