Results 1 to 6 of 6

Thread: Guv, Lior & kedaman - An Amazing Puzzle

  1. #1

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357

    Guv, Lior & kedaman - An Amazing Puzzle

    Once upon a time, a salesman approached an old lady in order to sell her children some goods. He asked how many children she had and how old they were.

    The old lady replied that she had 3 children. She told him the product of their ages was 36 and that the sum of their ages was on the nextdoor house.

    So, the salesman jumped over the fence and looked at the number on the nextdoor house. He returned to the old lady and told her he could not complete the problem without more information.

    The old lady consented to give him one more item of data. She said 'The eldest child plays the piano'.

    Your problem: what are the ages of the 3 children?

    I promise this problem is completely soluble! Just to clarify: you don't get told the number on the nextdoor house!
    Best of luck...
    There are 10 types of people in the world - those that understand binary, and those that don't.

  2. #2
    Lively Member
    Join Date
    May 2000
    Posts
    84
    Wasn't this question asked before? It is simple enough when you work out the combinations.

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151
    Illuminator is correct. I counted 8 possibilies for the ages, including 1, 1, & 36 which is obviously not correct.

    If you check them all, it does become obvious.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  4. #4

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    ok, ok. guv, you probably have the correct answer. for everyone else, here is how you begin to go about it:

    1)Split 36 into prime factors: 2,2,3,3
    2)Also use 1 as a factor so 1,2,2,3,3
    3)Use these to get combinations.
    1,1,36
    1,2,18
    1,3,12
    1,4,9
    1,6,6
    2,2,9
    2,3,6
    3,3,4
    4)Now can you finish it off?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    1+1+36=38
    1+2+18=21
    1+3+12=16
    1+4+9=14
    1+6+6=13 <- A
    2+2+9=13 <- B
    2+3+6=11
    3+3+4=10
    If the sum is 13, then there's still not enough info, and since the eldest child
    has to be older than the others, it's the B alternative.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    yer you got it.
    There are 10 types of people in the world - those that understand binary, and those that don't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width