P374: Enumeration of all regular $k$-ary trees with $n$ ndoes

P374: Enumeration of all regular $k$-ary trees with $n$ ndoes
Input:
Integers $k$ and $n$.
Output:
All regular $k$-ary trees with $n$ ndoes.
Complexity:
Comment:
Reference:
[Zaks1982] (Bibtex)