![]() |
Dartboard Question
A dartboard contains regions with point values in the following list:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 21,22,24,25,26,27,28,30,32,33,34,36,38,39,40,42,45, 48,50,51,54,57,60 Suppose you want to reach exactly N=100 points, and that each dart toss must hit a different valued region. How many different ways are there of doing this? In other words, how many partitions of N=100 into sums of numbers in the above list without repetition are there? For what value of N does this function peak? |
How many darts are you allowed to throw?
|
You can throw any number up to the number (43) of
different valued regions. |
[QUOTE=davar55;125160]A dartboard contains regions with point values in the following list:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 21,22,24,25,26,27,28,30,32,33,34,36,38,39,40,42,45, 48,50,51,54,57,60 Suppose you want to reach exactly N=100 points, and that each dart toss must hit a different valued region. How many different ways are there of doing this? In other words, how many partitions of N=100 into sums of numbers in the above list without repetition are there? For what value of N does this function peak?[/QUOTE] Compute the coefficient of x^100 in the generating function 1/[(1-x)(2-x)(3-x)(4-x)............(60-x)] I would not want to do this by hand. Use a SAP. |
248990?
I'm a little unsure of whether SAP is an accronym that stands for something, or a derogatory term for someone who will actually spend their time calculating the answer. I certainly hope it isn't the latter. I whipped up some PARI code to work this out, but only went up to 13 darts, because the 14th triangular number is over 100. My code takes 20 seconds to come to that answer. |
[QUOTE=lavalamp;125174]248990?
I'm a little unsure of whether SAP is an accronym that stands for something, or a derogatory term for someone who will actually spend their time calculating the answer. I certainly hope it isn't the latter. I whipped up some PARI code to work this out, but only went up to 13 darts, because the 14th triangular number is over 100. My code takes 20 seconds to come to that answer.[/QUOTE] SAP = Symbolic Algebra Package/Program |
For N=100 I get: partitions=[spoiler]258949[/spoiler]
|
Oops, I just saw the second part of the post.
[spoiler]Since the maximal total is 1072, the function should peak at half, N=536 with partitions=35458209440[/spoiler]. |
Ah, somehow I'd missed out number 39 from my list of possible numbers, I also now get [SPOILER]258,949[/SPOILER].
As a possible expansion to this problem then, what if the limitation is just a max of one dart per area rather than a max of one dart per score. For example, it's possible to score 6 in three different ways, single 6, double 3, triple 2. Also, or perhaps instead, what if it was extended to include quadruple and quintuple numbers on the (presumably very large) board. A third expansion might be a board with more or fewer numbers on it. Edit: I decided I'd run some code to count all combinations for n=100 with the first expansion (one dart per area, rather than one per score). The code took a _lot_ longer to run (80 minutes up from 20 seconds), and it counted [SPOILER]75,097,688[/SPOILER]. |
[QUOTE=lavalamp;125241]Edit: I decided I'd run some code to count all combinations for n=100 with the first expansion (one dart per area, rather than one per score). The code took a _lot_ longer to run (80 minutes up from 20 seconds), and it counted [SPOILER]75,097,688[/SPOILER].[/QUOTE]You need a better algorithm. It is a trivial Q actually. I ran all sums up to 1072 in <1 second. Think about using [spoiler]divide and conquer methods similar to FFT[/spoiler]
[edit]For all area scores (62 areas will bullseye) I get [spoiler]82339371[/spoiler] for N=100[/edit] |
[quote=retina;125243]You need a better algorithm. It is a trivial Q actually. I ran all sums up to 1072 in <1 second. Think about using [spoiler]divide and conquer methods similar to FFT[/spoiler]
[/quote] Yes I think I can see what you mean. David |
| All times are UTC. The time now is 20:39. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.