Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:38:43+00:00 2026-05-25T11:38:43+00:00

I am developing an algorithm and am looking at a possibility of the maximum

  • 0

I am developing an algorithm and am looking at a possibility of the maximum number of iterations before arriving at a conclusion.

In real world, it is similar to the Classical Round Table seating problem. Can you please tell me the maximum number of ways n persons be seated in a round table without repetitions ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:38:44+00:00Added an answer on May 25, 2026 at 11:38 am

    Let’s trace through the solution to this problem.

    First, let’s see how many ways we can arrange n people in a line. There are n different people we can choose to put at the front of the line. Of the n – 1 who remain, any n – 1 of them can be put in the second position. Of the n – 2 who remain, any n – 2 of them can be put into the third position, etc. More generally, we get the formula

    Num arrangements = n x (n – 1) x (n – 2) x … x 1 = n!

    So there are n! different ways of permuting people in a line. More generally, there are n! different ways to reorder n unique elements.

    Now, what happens when we arrange people in a ring? For each linear permutation, we can convert that arrangement into a ring arrangement by connecting the two ends. For example, with three people, there are six ways to order them in a line:

    1 2 3
    1 3 2
    2 1 3
    2 3 1
    3 1 2
    3 2 1
    

    These map to the following rings:

               1
    1 2 3  -> / \
             3---2
    
               1
    1 3 2  -> / \
             2---3
    
               2
    2 1 3  -> / \
             3---1
    
               2
    2 3 1  -> / \
             1---3
    
               3
    3 1 2  -> / \
             2---1
    
               3
    3 2 1  -> / \
             1---2
    

    However, we can’t conclude from this that the number of seating arrangements in n! because we’ve created the same seating arrangement multiple times here. As a trick, let’s suppose that we always write the cycle out so that 1 is at the top of the cycle. Then we’ve generated the following cycles:

               1
    1 2 3  -> / \
             3---2
    
               1
    1 3 2  -> / \
             2---3
    
               1
    2 1 3  -> / \
             2---3
    
               1
    2 3 1  -> / \
             3---2
    
               1
    3 1 2  -> / \
             3---2
    
               1
    3 2 1  -> / \
             2---3
    

    Notice that we’ve generated the following:

       1              1
      / \   x3       / \   x3
     2---3          3---2
    

    So really, there are only two different arrangements; we’ve just generated each of them three times.

    The reason for this is that because the ring has no definitive start and end point, we will end up generating multiple rotations of each of the different arrangements. In particular, if there are n people that we need to seat, we’ll end up generating n different copies of the same rotation, one with each of the different guests up at the top. Consequently, to get the total number of guests, for each of the different rings, we need to ignore all but one of them. Since there are n different copies of each ring, this means that the total number is given by

    n! / n = (n – 1)!

    So there are (n – 1)! different ways to seat people in a ring.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an algorithm to parse a number out of a series of short-ish
I'm developing a web application similar to Digg and I need an algorithm which
Just for kind of fun I'm developing almost every algorithm (if possible) shown in
I'm having some trouble developing an algorithm to determine the minimum of a list
I am looking for a fast polygon triangulation algorithm that can triangulate not very
I am working on developing a lossless compression algorithm using MATLAB. I would like
I am developing a rotate-around-axis algorithm in 3 dimensions. My inputs are the axis
I am having some trouble developing a suitably fast binning algorithm in Mathematica. I
I am developing an android messaging application. Is there a good spam filtering algorithm
I'm taskd with developing a packing algorithm for parts bought from our online store.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.