combinat::necklaces::fromContent – necklaces with prescribed content
The combinatorial class of necklaces with prescribed content
Details:
This domain is a wrapper around combinat::necklaces::fromEvaluation to make it easy to generate necklaces by content; the available methods are the same, but take contents instead of evaluations as arguments.
To decide on the canonical representative of a necklace, the letters appearing in the content are ordered as in sort.
Here are all the necklaces containing three a's, one b, and two d's:
combinat::necklaces::fromContent([a, a, a, b, d, d])
Changes in MuPAD 3.1
New Function.