OFFSET
0,5
COMMENTS
Counts rooted planar n-trees whose number of leaves is divisible by 3.
FORMULA
MAPLE
A119365 := proc(n)
local k;
if n = 0 then
return 1
end if;
a := 0 ;
for k from 0 to n do
if modp(n-k, 3) = 0 then
a := a+binomial(n, k)*binomial(n, k+1) ;
end if;
end do:
a/n;
end proc:
seq(A119365(n), n=0..40) ; # R. J. Mathar, Oct 30 2014
MATHEMATICA
A119335[n_, k_] := Sum[Binomial[k, 3j] Binomial[n-k, 3j], {j, 0, n-k}];
Table[a[n], {n, 0, 26}] (* Jean-François Alcover, Sep 14 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 16 2006
STATUS
approved