Quote:
Originally Posted by Kvitlekh
How many different 7 letter combinations can be drawn from a fresh bag?
I counted 3,199,724 unique tile combinations for the English version.
First make a table of (T,L) where L letters have T or more tiles.
Code:
T L
1 27
2 22
3 12
4 11
5 7
6 7
7 4
8 4
9 3
10 1
11 1
12 1
Now form all of the partitions of the number 7. That is, the number of ways to sum positive integers to form 7 without regard to order. There are 15 such partitions as is well known. List these using notation (T,L) where we take T tiles from each of L letters.
Code:
(7,1)
(6,1)(1,1)
(5,1)(2,1)
(5,1)(1,2)
(4,1)(3,1)
(4,1)(2,1)(1,1)
(4,1)(1,3)
(3,2)(1,1)
(3,1)(2,2)
(3,1)(2,1)(1,2)
(3,1)(1,4)
(2,3)(1,1)
(2,2)(1,3)
(2,1)(1,5)
(1,7)
Now count the number of combinations in each of these partitions using the first table and sum:
4 +
7*26 +
7*21 +
7*C(26,2) +
11*11 +
11*21*25 +
11*C(26,3) +
C(12,2)*25 +
12*C(21,2) +
12*21*C(25,2) +
12*C(26,4) +
C(22,3)*24 +
C(22,2)*C(25,3) +
22*C(26,5) +
C(27,7)
= 3,199,724
Quote:
How many can be drawn with only the 98 tiles and 0 blanks?
The first 2 elements of the first table change to 26 and 21. Then the calculation becomes:
4 +
7*25 +
7*20 +
7*C(25,2) +
11*11 +
11*20*24 +
11*C(25,3) +
C(12,2)*24 +
12*C(20,2) +
12*20*C(24,2) +
12*C(25,4) +
C(21,3)*23 +
C(21,2)*C(24,3) +
21*C(25,5) +
C(26,7)
= 2,484,184
Last edited by BruceZ; 09-13-2012 at 02:25 AM.