A300353 Number of strict trees of weight n with odd leaves.
1, 1, 0, 1, 1, 2, 2, 4, 7, 14, 24, 46, 92, 186, 368, 750, 1529, 3160, 6510, 13590, 28374, 59780, 125732, 266468, 564188, 1202842, 2560106, 5484304, 11732400, 25229068, 54187918, 116938702, 252039411, 545593378, 1179545874, 2560009400, 5550315640, 12075064432
Offset: 0
Keywords
Examples
The a(8) = 7 strict trees with odd leaves: (71), (53), (((51)1)1), (((31)3)1), (((31)1)3), ((31)31), (((((31)1)1)1)1).
Links
- Andrew Howroyd, Table of n, a(n) for n = 0..500
Crossrefs
Programs
-
Mathematica
d[n_]:=d[n]=If[EvenQ[n],0,1]+Sum[Times@@d/@y,{y,Select[IntegerPartitions[n],Length[#]>1&&UnsameQ@@#&]}]; Table[d[n],{n,40}]
-
PARI
seq(n)={my(v=vector(n)); v[1]=1; for(n=2, n, v[n] = polcoef(x/(1-x^2) + prod(k=1, n-1, 1 + v[k]*x^k + O(x*x^n)), n)); concat([1], v)} \\ Andrew Howroyd, Aug 25 2018
Comments