Re: four digits must total 24
- From: The Translucent Amoebae <transamoebae@xxxxxxxxxx>
- Date: Fri, 19 Dec 2008 10:32:10 -0800 (PST)
On Dec 10, 8:08 pm, azure <k...@xxxxxx> wrote:
Given four digits, use each only once, use +, -, *, /, to make the
total of 24.
Some newspapers print such a puzzle, some are easy (relatively) some
more obscure, but how would a computer program solve such a puzzle?
2,7,8,9 = 2(7+9)-8
3,5,5,7 = (3*5 -7) *3
1,2,7,7 = (7*7 - 1 )*2
There are hundreds of possible numbers that can be used 1,1,1,8 is
the lowest (1+1+1)*8 the highest (in ascending order of course) is
around 6,6,6,6 or a bit higher.
I think one would have to build a database of all solutions, and then
compare the given digits to the db? I don't think a program could be
written to solve it.
My bio-organic CPU (aka brain) looks for the factors of 24,
1,2,3,4,6,8,12 and tries to get one or more of these.
Any other suggestions?
My Solution would be to first discover all ways of creating 24 with 2
digits
Using each of the Operators that are allowed.
This quickly yields 4 * 6
And since you need 2 more numbers to make it work,
Try reducing 4 & 6 in the same manner
4(2*3)
hmmm...
(9-5)(2*3)
Is that it?
.
- Follow-Ups:
- Re: four digits must total 24
- From: Mensanator
- Re: four digits must total 24
- References:
- four digits must total 24
- From: azure
- four digits must total 24
- Prev by Date: Re: Flipping a Coin Over The Phone...?
- Next by Date: Re: Flipping a Coin Over The Phone...?
- Previous by thread: Re: four digits must total 24
- Next by thread: Re: four digits must total 24
- Index(es):
Relevant Pages
|
Loading