Solved

The Impossible 24 Game???

Posted on 2003-11-19
8
1,234 Views
Last Modified: 2012-06-22
Today during school I came across a couple of kids trying to figure out one of the cards of "The 24 Game".  This immediately struct me as odd, because being seniors it is very childish to play the game.  If you don't know how it works, the rules are:

1.) Use all numbers once and only once
2.) You can only use the four basic math functions (+ - / *)
3.) Your answer has to turn out to be 24

So as I was saying, I along with many others spent 20 minutes trying to figure it out and got no where, it has been bothering me all day.  The game is designed for elementary school kids, and I'm in AP Calculus as a sophmore in high school and can't figure it out.  And some of my friends were helping me and they got 1600's on the SAT's and couldn't get it.  So I thought I would post it here and see if any of you could get the answer, or if it is a misprint...I wasn't sure if it was a misprint or not, because the directions of the game say that all have atleast one section.

So here are the numbers:

       7
3            3
       5

Have fun, don't let it keep you up at night. ;)

Mark
0
Comment
Question by:simpsons17371
8 Comments
 
LVL 31

Expert Comment

by:GwynforWeb
Comment Utility
(75 -3)/3

 from understanding brackets are allowed and it can not be done without combing the 7and 5 to make 75 which I also believe is in the rules (I ran a short program to test)
0
 
LVL 1

Expert Comment

by:meow00
Comment Utility
How about :

  57-33

meow......
0
 
LVL 18

Accepted Solution

by:
meintsi earned 50 total points
Comment Utility
Here you go ..................
(following the explicit rules)

((3×5)-7)×3 = 24
0
 
LVL 31

Expert Comment

by:GwynforWeb
Comment Utility
meintsi, ouch! How did my program miss tagt ( and me for that matter)
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 31

Expert Comment

by:GwynforWeb
Comment Utility
hmm, my program did not miss it i did not check the output properly. :-(
0
 
LVL 1

Author Comment

by:simpsons17371
Comment Utility
thats it, meintsi....i spent so long trying to figure it out and i completely overlooked that, along with a tom of other people.  i wonder what that is all about
0
 

Expert Comment

by:Voice
Comment Utility
GwynforWeb, would you mind posting the program?

thanks
0
 
LVL 31

Expert Comment

by:GwynforWeb
Comment Utility
Voice,
     I just noticed your post. I ran this and then checked through the output for the right number of each number. Save it as a .htm and open in a browser. ( no programing awards here )

<script>
target=24
nums=new Array('3','3','5','7')
ops=new Array('+','-','*','/')
bl='('
br=')'
for (i=0;i<4;i++)
for (j=0;j<4;j++)
for (k=0;k<4;k++)
for (l=0;l<4;l++)
for (o1=0;o1<4;o1++)
for (o2=0;o2<4;o2++)
for (o3=0;o3<4;o3++)
{NumStr=bl+bl+nums[i]+ops[o1]+nums[j]+br+ops[o2]+nums[k]+br+ops[o3]+nums[l]
if (eval(NumStr)==target) document.write(NumStr+'='+target+'<br>')
}
</script>
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

A Guide to the PMT, FV, IPMT and PPMT Functions In MS Excel we have the PMT, FV, IPMT and PPMT functions, which do a fantastic job for interest rate calculations.  But what if you don't have Excel ? This article is for programmers looking to re…
Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now