![]() |
|
|
#12 |
|
"Brian"
Jul 2007
The Netherlands
7·467 Posts |
Sorry that I'm so dim, but...
what is that hex number and how does it answer the original question? Appreciating your help in advance, guys.
|
|
|
|
|
|
#13 | |
|
Dec 2007
Cleves, Germany
2·5·53 Posts |
Quote:
Last fiddled with by ckdo on 2008-03-07 at 12:50 Reason: added "prime" |
|
|
|
|
|
|
#14 |
|
"Brian"
Jul 2007
The Netherlands
326910 Posts |
|
|
|
|
|
|
#15 |
|
Dec 2007
Cleves, Germany
2·5·53 Posts |
Warning! Major spoiler ahead! ![]() I split the problem like this: Drawing [B]n[/B] tiles from the entire set is equal to drawing [B]a[/B] tiles from the [N,L,B,P,V,K] subset, [B]b[/B] tiles from the [R,S,C,F,W,J] subset, [B]c[/B] tiles from the [T,D,M,H,Y,X] subset and [B]d[/B] tiles from the [E,A,I,O,U,G,Blank,Q,Z] subset such that [B]a+b+c+d=n[/B] with [B]0<=[a,b,c]<=17[/B] and [B]0<=d<=49[/B]. The subsets were chosen like this because the distribution of the letters in the first three is identical: 6,4,2,2,2,1 from left to right. Saves computing stuff twice. Splitting the problem further didn't seem necessary. Now you only need to make two tables how many possibilities there are to draw 0..17 and 0..49 tiles from sets with elements distributed as given (once) and then for all [B]n=1..50[/B] find fitting [B]a,b,c[/B] values, multiply the combinations for the four subsets and add them up leaving you with the number of racks of [B]n[/B] tiles. Then you "only" need to factor those numbers (up to 15 digits in length) and remember which factor was the largest you see. Which hopefully is 219163709706077, the number of unique racks of 36 tiles. [B]qed.[/B] |
|
|
|
|
|
#16 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22·1,549 Posts |
There is also away to compute the answer without needing any tables and also it only uses addition, never needs any multiplications. It can also extended without limit to any set of coefficients (tiles) given in any order. Actually the big clue is this word, "coefficients"
I also discovered there is a super set distribution with 200 tiles, the numbers are a bit larger up to 22 digits maximum, so the same thing, what is the largest prime from all factorised numbers of draws up to 100 tiles? |
|
|
|
|
|
#17 |
|
"Brian"
Jul 2007
The Netherlands
CC516 Posts |
I find ckdo's method ingenious, although I can't quite see why computing the tables for the (very clever) subsets requires less work than simply computing the whole table in one go drawing from all 100 tiles.
Therefore I'm interested to think further and try to discover retina's method with the hint provided. I guess it will be needed to solve the bigger superset problem. Edit: Forget that "although...", sorry. Of course the division to subsets makes it easier because there are fewer combinations of numbers from each group. Last fiddled with by Brian-E on 2008-03-07 at 17:00 |
|
|
|
|
|
#18 |
|
Dec 2007
Cleves, Germany
2×5×53 Posts |
The 64 bit border is one I'm not tempted to cross anywhen soon.
|
|
|
|
|
|
#19 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
140648 Posts |
|
|
|
|
|
|
#20 |
|
Nov 2005
18210 Posts |
Arbitary precision arithmatic is your friend! Have fun waiting 6 months for your calculation that would take 2 months with less-than-64-bit numbers. :)
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Path Counting | henryzz | Puzzles | 13 | 2014-09-17 11:21 |
| SCRABBLE | Raman | Hobbies | 9 | 2013-12-11 21:56 |
| Counting on Fingers | Orgasmic Troll | Lounge | 3 | 2005-12-31 22:22 |
| Counting Cubes | Numbers | Puzzles | 6 | 2005-09-03 00:26 |
| counting bricks | michael | Puzzles | 8 | 2004-01-14 16:27 |