Hi Hotpepper
If the number was any other than 13 Mary would know immediately the ages of the 3 children.
So Mary knows the sum of the ages.
If the number of the building was, for ex. 14, you can check in schielrn's table that there is 1 only solution for the ages: (1,4,9).
The same for all the other possible sums: 38,21,16,11, 10.
The only case where the sum and the product are not enough to determine the 3 ages is the case of Sum=13. In that case there are 2 possibilities. Since Mary needed more information, we know that that was the case, the number on the door was 13, and Mary need more information to determine which of the 2 solutions was the one.
If the number was any other than 13 Mary would know immediately the ages of the 3 children.
Jack: Yes, I have 3. Since you always like puzzles I'll tell you like this: do you see this number on the door of the building (both look at the number), well the sum of their ages is equal to this number and the product of the ages is 36.
Mary: Can you give me something more?
So Mary knows the sum of the ages.
If the number of the building was, for ex. 14, you can check in schielrn's table that there is 1 only solution for the ages: (1,4,9).
The same for all the other possible sums: 38,21,16,11, 10.
The only case where the sum and the product are not enough to determine the 3 ages is the case of Sum=13. In that case there are 2 possibilities. Since Mary needed more information, we know that that was the case, the number on the door was 13, and Mary need more information to determine which of the 2 solutions was the one.