UPI Study › Courses › Discrete Mathematics › Free lessons › Lesson 5.6 Free with a free account
Circular Permutations
Discrete Mathematics · Chapter 5: Counting Methods and Basic ProbabilitySection 5.6 · lesson 32 of 878 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Discrete Mathematics.
Lesson complete
Earn the 4 college credits for Discrete Mathematics
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Combinations and Unordered Selections →← Probability of Permutation EventsNext lesson: Combinations and Unordered Selections →
In this lesson
Arrangements around a circle, where rotating the whole thing changes nothing.
- Define rotational equivalence
- Derive the circular permutation formula 2 ways
- Count ring configurations
- Decide when reflections should also count as the same
Transcript
Everything said in the video, section by section (1,121 words). Read along, or search it.
Counting Methods and Basic Probability
Circular Permutations
Section five point four counted arrangements in a line, where the first position is genuinely different from the second. This section counts arrangements around a circle, where rotating the whole arrangement changes nothing that actually matters. The question is how many distinct arrangements remain, once that rotational freedom is accounted for.
The Opening Problem
A Ring With No Starting Point
Consistent hashing is a technique distributed caches and databases use to spread data across a set of servers. Each server is placed at a position on a conceptual ring. A piece of data goes to whichever server comes next, going clockwise from the data's hash value. Only the relative clockwise order of the servers affects routing. Which server happens to be drawn at the top of the ring isn't a meaningful distinction. The ring has no actual starting point. Rotate every server's position by the same amount, and the ring behaves identically for routing. Even though, written out as a left-to-right list, it would look like a different sequence altogether.
Definition
Rotational Equivalence
Arranging n distinct items in a line gives n factorial orderings. That's because every position is distinguishable from every other. Swapping the items in positions one and two always gives a genuinely different list. A circular arrangement removes that distinction between positions. No position is intrinsically first. Here's the key definition. Two circular arrangements of the same items are rotationally equivalent, and count as the same, if one can be produced from the other by a rotation. Every item moves the same number of positions around the circle. Nobody's neighbors change, and neither does the clockwise order.
Figure 1
Rotations Versus Genuinely New Neighbors
Here are three arrangements of five servers. Arrangements one and two list the same servers, in the same clockwise order. A, B, C, D, E, and back to A. Arrangement two simply starts from a different position. They're rotations of each other, so they count as one circular arrangement. Arrangement three is different. B and C have swapped their relative order, so the neighbors genuinely change. That makes it a distinct circular arrangement.
Counting the Clusters
Each Circle Gives Exactly n Lines
Rotational equivalence groups the n factorial linear arrangements into clusters, each representing the same circular arrangement. Counting the size of each cluster counts the circular arrangements. Start from any circular arrangement, and read it off as a line, starting at any of the n items. That gives at most n linear arrangements. And those n lines are all genuinely different. Suppose two different starting points gave the identical list. Then the arrangement would have to repeat itself after some number of positions, strictly between zero and n. That would force at least two of the items to be identical. But all n items are distinct. So every circular arrangement of n distinct items corresponds to exactly n distinct linear arrangements.
Theorem
The Circular Permutation Formula
Since the n factorial linear arrangements split evenly into clusters of exactly n, the number of circular arrangements is n factorial over n. That's n minus one, factorial. n minus one, times n minus two, and so on, down to one. That's the circular permutation formula. It counts distinct circular arrangements of n distinct items, where rotations are considered identical.
A Second Way to See It
Fix One Item, Then Arrange the Rest
There's a second, equivalent way to see the same count. Instead of counting rotations and dividing them out afterward, remove them directly. Fix one specific item's position. Say, always place server A at the top. That eliminates rotation as a source of difference entirely, since every arrangement is now read from the same fixed point. The remaining n minus one items then fill the other positions in any linear order relative to A. That's n minus one factorial ways, by ordinary linear counting. With five servers, the other four fill four positions in four factorial, twenty-four ways. That matches the formula, and it's often the faster way to compute the answer in practice.
Worked Example 1
Consistent-Hashing Ring Configurations
So how many distinct ways are there to arrange five distinct servers around a consistent-hashing ring, where rotating the whole ring doesn't change routing? Here n is five. So it's four factorial, which is twenty-four distinct ring configurations. That's far fewer than the one hundred twenty linear orderings, which we'd count if position on the ring meant something in itself. The code confirms it. The factorial of n minus one prints twenty-four. And one hundred twenty linear arrangements, divided by five, also gives twenty-four.
Advanced Note
When Mirror Images Are the Same Too
Here's an advanced note. The circular formula accounts for rotations only. It still treats a clockwise arrangement and its mirror image, the same items in reverse, as different. For some physical arrangements, reversal is also a symmetry. A necklace strung with distinct beads can be lifted off and turned over. That reverses the direction the beads are read in, but the necklace is indistinguishable from the original. When both rotations and reflections count as the same, each rotation-only arrangement pairs up with exactly one other, its mirror image. So the count halves, to n minus one factorial over two, for n at least three. For a necklace of six distinct beads, that's one hundred twenty over two, or sixty designs. But this adjustment isn't automatic. A hashing ring can't be flipped in any sense that matters. The algorithm fixes what clockwise means, and reversing it would route every request to a different server. Whether to divide by two depends on whether reflection is a genuine symmetry of the situation, not on whether things happen to be arranged in a circle.
Comparison
Linear, Circular, Reflective
This table compares the three kinds of arrangement. Linear arrangements count n factorial. Only identical, position-by-position lists are the same. Ordering tasks in a run sequence is a typical case. Circular arrangements, with rotation only, count n minus one factorial. Rotations of each other are the same. A hashing ring, or a round-robin turn order, are typical cases. And circular arrangements with reflection count half that. Rotations or mirror images are the same, like a necklace or bracelet that can be turned over.
Takeaways
No First Seat at a Round Table
To summarize. Circular arrangements differ from linear ones because a circle has no distinguished starting position. Rotating an entire arrangement gives one that's considered identical. Each circular arrangement of distinct items matches exactly n linear ones, one per starting point. So there are n minus one factorial circular arrangements. Fixing one item and arranging the rest gives the same count directly. And reflective symmetry is a separate adjustment, dividing by two. It applies only when reversing direction is genuinely meaningless. Here's something to think about. A network engineer counts ring configurations for seven servers as six factorial over two, which is three hundred sixty. They reason that reversing the ring's direction should count as the same, just like flipping a necklace. Explain why that's wrong for ring routing, even though dividing by two is right for a necklace of the same seven beads. What property of the situation decides it?
About Discrete Mathematics at UPI Study
Discrete Mathematics (Math 230) is a self-paced online course of 87 video lessons in 13 chapters, from logic and proof to counting, probability, graph theory and trees. It carries a NCCRS credit recommendation for 4 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus Every course with PRO →
Why take it here
Why students take Discrete Mathematics with UPI Study
Where the credit goes
Universities that work with NCCRS
Discrete Mathematics carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Circular Permutations
What does rotational equivalence mean in circular permutations?
Why is the number of circular permutations of n distinct objects (n-1)!?
How do you count seating arrangements around a round table by fixing one person?
When do you divide circular permutations by 2 for reflections?
About the Discrete Mathematics course
How many college credits is Discrete Mathematics?
How much does Discrete Mathematics cost and what is included?
Which universities accept UPI Study credits?
How long does Discrete Mathematics take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 4 credits in Discrete Mathematics.
87 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
4 credits · NCCRSEnroll →