Pairmute

Richard A. DeVenezia. 15MAR2004

Enumerating all possible rounds that can be considered for combination into a tournament (thanks to James Parmenter).


Consider n = 2m and items i1in that are arranged into m pairs.

Let xi be any item in the remaining pool.

Let (x1,x2) be the first pair. There are n-1 possible first pairs after x1 has been selected. The remaining pool has n-2 items in it.

Let (x3,x4) be the second pair. There are n-3 possible second pairs after x3 has been selected. The remaining pool has n-4 items in it.

Let (x5,x6) be the third pair. There are n-5 possible third pairs after x5 has been selected. The remaining pool has n-6 items in it.

Let (xn-3,xn-2) be the (m-1)st pair. There are 3 possible (m-1)st pairs after xn-3 has been selected. The remaining pool has 2 items in it.

Let (xn-1,xn) be the mth pair. There is only 1 possible mth pair after xn-1 has been selected. The remaining pool has no items in it.

So the number of possible pairwise combinations is the product (n-1)(n-3)(n-5)(5)(3)(1).

PC(m) = ∏ (2m-2i+1); i = 1m -or- ∏ (2i-1); i = 1m

PC(m) can also be expressed in the form (2m)! / ( m! 2m ). This form is found by noticing that PC(m) is n! with every even (there are m of them) factor removed.


Consider upper triangular matrix P(i,j); i<j; i=1n-1, j=i+1n containing the enumeration 1m × (n-1).

Each (i,j) is a pairing between i and j.

P(0,j) = 0

P(i,j) = P(i-1,n) + j - i

Sequence F = P(i-1,n); i=1n-1 enumerates the values in the rightmost column

F1 = 0

F2 = n-1

Fi = ∑ (n-k); k=1i-1

Fi = ∑ n - ∑ k; k=1i-1

Fi = (i-1)n - (i-1)i/2

Fi = (i-1)(2n - i)/2

Thus

P(i,j) = Fi + j-i = (i-1)(2n - i)/2 + j-i