How many distinct necklaces can be made with n beads and k colors?

  • Thread starter Thread starter SammC
  • Start date Start date
  • Tags Tags
    Counting
AI Thread Summary
The discussion explores how to calculate the number of distinct necklaces that can be formed with n beads of different colors, considering that necklaces can be flipped and rotated. Initial attempts show that for n=3, there is only one distinct arrangement, while for n=4, there are three. A proposed formula for n beads with k colors simplifies to (n-1)! / 2 when n equals k, but its validity beyond small values remains uncertain. The conversation also clarifies that the equivalence of arrangements arises from treating rotations and flips as identical, leading to the conclusion that the total arrangements must be divided by the number of equivalent configurations. The need for a mathematical method to determine the number of equivalent necklaces is emphasized.
SammC
Messages
17
Reaction score
0
The problem statement
Suppose you have n beads, each with a different color. You need to string these beads into a necklace. How many distinct necklaces can you make? (A necklace flipped over remains the same and does not count as a distinct necklace.)


The attempt at a solution
I decided to figure out the first couple necklaces:

n=3: 3 beads can only be arranged 1 distinct way that can't be duplicated by flipping or rotating.

n=4: 4 beads can be arranged 3 ways.

Browsing the internet, i found some fairly complicated equations that I didn't really understand, but I found one for N beads with K different colors, which simplified down to (n-1)! / 2 for N=K. I tried this out for n=3 and 4, and it worked for both of those, but that's far from proof that it works beyond that.

What i really want to know is if this formula is correct, and if not, a way of thinking about this problem that will lead me down the path to a correct formula.
 
Physics news on Phys.org
Let's start by leaving out the requirement of "invariance under flipping".
Suppose you have N beads of different colors, so they are all distinguishable. How many different necklaces can you make out of them?
If you haven't seen such a question before, try a counting argument... how many possibilities are there for the first? How many for the second? How many for the third? Continue like this... then what do you do with all those numbers (multiply them together? add them? exponentiate them :-p?)

Also, I think I am missing a small point... how is there only one for n = 3?
Suppose you have Red, Green and Blue beads, then you can make the six combinations
RGB, BGR
RBG, GBR,
GRB, BRG
where the ones listed on one line are the same (by reversal). So that gives you three possibilities, not one, doesn't it?
Or are you allowed to do cyclic permutations (e.g. RGB is the same as GBR and BRG?)
 
If you purely want to choose all the possible combinations, it would be n!.

The reason n=3 results in 1 is because you assume that the first and last element are connected (like in a necklace) and things that can be made from rotating that necklace or flipping it can't be counted again. So for the triangle that would be formed using RGB, you there is no other combination that cannot be formed by rotating or flipping that triangle.
 
Ah, I see.
So in principle we have n! combinations. Now let's consider one specific necklace and count the number of equivalent ones. If there are Q equivalent necklaces then the number you are looking for will be n!/Q, agreed?

If you have a necklace, ABCD...LMN, how many are there which are actually the same?
 
But how do you determine what Q is mathematically?
 
So first let's look at the rotations.
How many possible rotations of N are there that give a new sequence?
So if we have ABCD...LMN, then we want to consider BCD...LMNA and CDE...LMNAB as equivalent. Do you see how many possibilities this gives?
 
thank you

_____________________

http://www.choosing-bead-necklaces.com/children.html"
http://www.choosing-bead-necklaces.com"
 
Last edited by a moderator:
Back
Top