Thread: Math problem
View Single Post
  #2  
Old August 7th, 2003, 02:06 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: Math problem

Let's see: Floor function for the numbers:

Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games

Gp = (Np - 1) / (Pp - 1)
Tg = (Np * Gp) / Pp
= (Np*((Np - 1) / (Pp - 1)))/Pp
= (Np * (Np - 1)) / (Pp * (Pp - 1))

Gp = (Np - 1) / (Pp - 1)
Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))


If Gp and Tg come out as positive integers, it should be doable - I'm not sure about the arrangement, however.

Edit: Arrangement method:

1) List players
2) Variables
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Sk = Skip (counting variable; internal use only)
3) Gp = (Np - 1) / (Pp - 1)
4) Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))
5) Sk = 0
6) Group, skipping Sk
7) Sk = Sk + Pp
8) If Sk < Np, Goto 6

[ August 07, 2003, 01:44: Message edited by: Jack Simth ]
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote