/dev/null/kevin

Creating something from nothing, or maybe the other way around
All | Chuisms | Computers | Entertainment | Games | Hockey | Humor | Kids | Life | Music | SciFi | Television
20050224 Thursday February 24, 2005
Another Interview Puzzle Computers

Dave Brillhart posted a few logic puzzles that came from job interviews. They are quite interesting and I encourage you to try them.

Here is another puzzle from a job interview that my cousin received. It's not as hard as Dave's but not as many people get it as you would think, especially in the confines of a job interview.

Using the integers 1, 3, 4 and 6, and using only the four basic arithmetic operators + - * / (add, subtract, multiply, divide), create an equation that equals 24. Each number is used only once. The operators can be used as many times as you want. There is no "trick" to this, there really is a basic equation that produces 24.

I will post the answer in a few days.

Update: You must produce 24 exactly, no integer math. Like I said, no tricks.
Tags:
February 24, 2005 08:54 AM PST Permalink | Comments [11] | del.icio.us technorati slashdot digg reddit facebook stumbleupon


Comments:

int a=3, b=1, c=4, d=6; int result = (c*d) + (b/a); result=24

Posted by non-expert on February 24, 2005 at 12:38 PM PST #

WTH!! I didn't even consider integer arith :( I was trying to get rid of 1 and 3, but using integer arith is a bit tricky...

Posted by Rayson on February 24, 2005 at 01:12 PM PST #

Sorry, no. You may start with integers, but this is not integer math. Keep trying

Posted by Kevin on February 24, 2005 at 01:27 PM PST #

Do you want the answer published ?

I find it interesting that I have to answer a math question to post to your blog.
Now if I could only find the answer to 6/(1-3/4) ?

Posted by Bill on February 24, 2005 at 03:55 PM PST #

Nicely done, Bill. Yes, I think I will make that the new default math problem.

Posted by Kevin on February 24, 2005 at 05:09 PM PST #

Another answer to the puzzle. (14-6)*3

Posted by arun puri on February 24, 2005 at 08:48 PM PST #

I spent hours thinking about this, and even had to call in the big guns - my 11 yr old daughter and my wife. No joy, though.

However, I've just figured out a solution, but it's not base 10.

If I'm right, it's base 8 and a simple solution. Do I win a prize ?

Posted by Trevor Watson on February 25, 2005 at 11:46 AM PST #

how about hexexadecimal: 0x24 = (6+3)*4*1

Posted by michael jordan on February 25, 2005 at 02:59 PM PST #

More tricks! Everyone is so clever, but that's not what I was looking for.

In case you missed it, Bill got the (base 10) answer:

6 / (1 - 3/4)

Posted by Kevin on February 25, 2005 at 04:05 PM PST #

I guess that "Each number is used only once" is being read to impley that each number must be used. Otherwise, what's wrong with 6*4

Posted by 65.217.42.2 on March 03, 2005 at 09:04 AM PST #

comeon people, im 15 yrs old and got given this in my AS maths lesson and i figured it out. kevin is a clever chap but the rest of you:D

Posted by jonathan on April 14, 2005 at 02:38 PM PDT #

Post a Comment:

Comments are closed for this entry.
Weblog | Archive of all entries.


Creative Commons License © Kevin Chu, Some Rights Reserved.   This work is licensed under a Creative Commons License.   Sun Microsystems Trademarks are in effect.
All opinons are mine! Mine! Mine! Mine!  Sun Microsystems has nothing to do with them.