Necklaces
Pre-necklaces
Lyndon words
Debruijn sequence
Bracelets
Unlabelled necklaces
Unlabelled Lyndon words
Necklaces
Lyndon words
(with no substring 0^{z}.)
Basis for free Lie Algebra
Chord Diagrams

Input:

n = The number of beads
k =
The number of colors 0..k-1.
d = The density (fixed number
of non-zeroes)
m = The maximum number
of non-zeroes (m > 0)
z = The number of zeros in the forbidden sequence 0^{z}