==> logic/children.p <==
A man walks into a bar, orders a drink, and starts chatting with the
bartender. After a while, he learns that the bartender has three
children. "How old are your children?" he asks. "Well," replies the
bartender, "the product of their ages is 72." The man thinks for a
moment and then says, "that's not enough information." "All right,"
continues the bartender, "if you go outside and look at the building
number posted over the door to the bar, you'll see the sum of the
ages." The man steps outside, and after a few moments he reenters and
declares, "Still not enough!" The bartender smiles and says, "My
youngest just loves strawberry ice cream."
How old are the children?
A variant of the problem is for the sum of the ages to be 13 and the
product of the ages to be the number posted over the door. In this
case, it is the oldest that loves ice cream.
Then how old are they?