|
SOLUTIONS
|
COMBINATORICA 程序包 符号
NecklacePolynomial
NecklacePolynomial[n, c, Cyclic]
returns a polynomial in the colors in c whose coefficients represent numbers of ways of coloring an n-bead necklace with colors chosen from c, assuming that two colorings are equivalent if one can be obtained from the other by a rotation.
NecklacePolynomial[n, c, Dihedral]
is different in that it considers two colorings equivalent if one can be obtained from the other by a rotation or a flip or both.
更多信息更多信息
- To use
, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
