Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Count the number of distinct necklaces made with beads of different colors
ResourceFunction["NecklaceCount"][group,n] gives the number of distinct necklaces that can be constructed with beads of n colors using operations defined by group. |
The number of distinct (fixed) necklaces of six beads in three colors:
In[1]:= |
Out[1]= |
The number of bracelets of five beads in two colors:
In[2]:= |
Out[2]= |
The necklace count can be obtained from CycleIndexPolynomial for the corresponding group:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
Or for a bracelet:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License