How can a program calculate combinations for three players without repetition?

  • Thread starter Thread starter Oljeg
  • Start date Start date
  • Tags Tags
    combinations
AI Thread Summary
To calculate combinations for three players without repetition over multiple rounds, a combinatorial design approach is necessary. For 21 players, each player must participate in matches such that no pair of players faces each other more than once. The total number of matches required can be calculated using the formula n(n-1)/3, resulting in 140 matches for 21 players. The discussion highlights the importance of understanding permutations and combinations in finite math to derive the correct formula. Ultimately, a program can be designed to input the number of players and rounds to generate the required match combinations.
Oljeg
Messages
1
Reaction score
0
Hi, I am trying to find the solution (formula) for doing the following:
For any number of players (divisible by three), I need to calculate a number of rounds (in my case 8) for three players to play each other without any repetition.
So the first round of etc. 21 players would be:
1,2,3 4,5,6, 7,8,9 10,11,12 13,14,15 16,17,18 19,20, 21 and I am looking for the combinations for the next 7 rounds so that no one plays the same player again. Eventually, I would like to design a program with number of players and rounds as an input variable.

Regards,
Oljeg
 
Mathematics news on Phys.org
Have you studied finite math at all? There are formulas for permutations and combinations that you would likely find useful (combinations in your case, not permutations, since it doesn't matter who sits in what chair in your scenario)
 
Are you saying that each match involves three players? That's an odd kind of match! If each player must play each other player once, then each of the n players must be involved in (n- 1) matches. If each match involves 3 players, that would be a total of n(n- 1)/3 matches. For n= 21, this is 21(20)/3= 140 matches, 20 rounds of 7 matches per round.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top