![]() |
Freethought & Rationalism ArchiveThe archives are read only. |
![]() |
#51 | |
Moderator - Science Discussions
Join Date: Feb 2001
Location: Providence, RI, USA
Posts: 9,908
|
![]() Quote:
|
|
![]() |
![]() |
#52 |
Veteran Member
Join Date: Oct 2002
Location: SW 31 52 24W4
Posts: 1,508
|
![]()
I found a slight problem in my code, but it only applies to cases where the minimum number can be 1. If the numbers can be 1 to 50 inclusive then the unique solution is:
1 and 10 |
![]() |
![]() |
#53 | |
Veteran Member
Join Date: Oct 2002
Location: SW 31 52 24W4
Posts: 1,508
|
![]() Quote:
![]() That's what I was forced to do in order to look for cases that allow for unique solutions. |
|
![]() |
![]() |
#54 |
Veteran Member
Join Date: Mar 2002
Location: anywhere
Posts: 1,976
|
![]()
Nevermind. These problems hurt me.
|
![]() |
![]() |
#55 |
Senior Member
Join Date: Feb 2003
Location: San Diego, California
Posts: 719
|
![]()
You know, I think I fucked up with regards to putting the cap on the numbers instead of on the sum. I really apologize for that. If you say that the sum must be less than 100 rather than each number less than 50, you can get a unique answer. If I'm correct, this increases the number of allowed sums to:
13, 19, 25, 29, 31, 37, 43, 49, 53, 55, 59, 61, 67, 73, 79, 81, 85, 89, 91, 95, 97, 99 Having a larger set of allowed sums then ends up working to your advantage. Damn, I'm sorry for messing that part up--I was trying to remember this from four years ago. |
![]() |
![]() |
#56 |
Regular Member
Join Date: Aug 2001
Location: Indeterminate
Posts: 447
|
![]()
Ahh, yes, if the limitation is numbers > 2 and sum < 100, then the answer is: 13 + 4
Running it through my program, I get a similar but larger table as posted above. Possible sums: 11 17 23 27 29 35 37 41 47 53. A lot of duplicates this time -- the sum 17 has 7 possible products (30 42 52 60 66 70 72), all but 52 are duplicated by products availible from the good set of sums. And the two numbers that have a sum of 17 and a product of 52 are 4 and 13. |
![]() |
![]() |
#57 |
Senior Member
Join Date: Feb 2003
Location: San Diego, California
Posts: 719
|
![]()
It can't be 4 and 13. It can't be 4 with any prime.
4 x 13 = 2 x 2 x 13 = 52 the only factors of this are (2, 26) and (4, 13). Since 2 is not allowed, should Polly see a product of 52, she would instantly know the numbers were 4 and 13. |
![]() |
![]() |
#58 |
Regular Member
Join Date: Aug 2001
Location: Indeterminate
Posts: 447
|
![]()
Oops. got a bug somewhere. hrm.
|
![]() |
![]() |
#59 |
Regular Member
Join Date: Aug 2001
Location: Indeterminate
Posts: 447
|
![]()
Ok, the last one I was solving for >= 2, duplicate numbers not allowed. That's what I get for writing code after 9 pm.
![]() For > 2, duplicate numbers allowed, I get 13 and 16 |
![]() |
![]() |
#60 |
Senior Member
Join Date: Feb 2003
Location: San Diego, California
Posts: 719
|
![]()
And we have a winner!
|
![]() |
Thread Tools | Search this Thread |
|