• subscribe
September 20, 2007 12:00 AM

The Logical Puzzle

SQL Server Pro
InstantDoc ID #96804

Is it possible to prove statistically that there must be at least two people in China who have the same number of hairs on their heads? Try to stick to pure probability and not to assumptions such as, "There must be many bald people in China." Also, is it possible to prove statistically that there must be at least two people in China with the same arrangement of teeth (i.e., missing or existing in the same positions)? Again, try to stick to pure probability and not to assumptions such as, "There must be many old people with no teeth, or people with no missing teeth." (I got these two nice puzzles from my friend, SQL Server MVP Marcello Poletti.)

The answer to the first puzzle is yes. There are more than a billion people in China, and there are fewer than a billion hairs on a human head. Because there are fewer hairs on a human head than there are people in China, it's impossible that every person in China has a unique number of hairs. Therefore, there must be at least one number that occurs at least twice; in other words, there must be at least one set of at least two people in China with the same number of hairs on their heads.

The answer to the second puzzle is no. It can't be proven that there must be at least two people in China with the same arrangement of teeth. Humans have as many as 32 teeth. You can represent any teeth arrangement (missing/existing) with a 32-bit bitmap. The number of possible combinations is 232 - more than 4 billion. Because there are more possible combinations of teeth arrangements than the number of people in China, it's possible that all Chinese have unique teeth arrangements.

OCTOBER'S PUZZLE: 2 MATHEMATICIANS
Two mathematicians (let's call them M and N) - once good friends - meet after a long time to have a drink together. M asks, "Are you married? Any kids? Do you still live in that old apartment building?" N replies, "Yes, I'm married with three kids, and we live in a private house now." M asks, "How old are your kids?" N replies, "Let me answer with a riddle: The product of the ages of my kids is 36. Now, see that bus over there? The sum of my kids' ages is equal to that bus number." M thinks for a moment, then says, "I don't have sufficient information to solve the puzzle." N replies, "Oh, yes, you're right, I forgot to mention that one of my kids was born before we bought the house." Soon after N provides this last bit of information, M solves the puzzle and tells N the correct ages of the kids. Can you figure out the solution? Also, how would the solution change if N's additional piece of information was that one of his kids was born after he bought the house?



ARTICLE TOOLS

Comments
  • Russell
    5 years ago
    Oct 15, 2007

    my solution all in T-SQL :) http://sqlforums.windowsitpro.com/web/forum/messageview.aspx?catid=122&threadid=87683&enterthread=y

  • Leonid
    5 years ago
    Oct 12, 2007

    Sorry, didn't see the solution posted 10/3. I sure get to read my copy of SQL Server too late :)

  • Leonid
    5 years ago
    Oct 12, 2007

    2 mathematicians puzzle:
    only 2 age combinations require clarification - {1,6,6} and {2,2,9}, both producing sum=13. If one kid was born before the twins, the combination is {2,2,9}; if after, then it's {1,6,6}.

  • Robert
    5 years ago
    Oct 03, 2007

    Crying foul on September's answers. The answers depend on empirical assumptions akin to the ones we are warned not to use. Sticking to 'pure' probability theory restricts one to the axioms of the probability calculus, statements that are logically possible (any statement that is not self contradictory – e.g. ‘There are 6 billion people in China’ is logically possible) and any empirical assumptions which are explicitly stated – none were. Change the empirical assumptions on which the answers are based, and the answers change, indicating that it is not a ‘statistical proof’, at least not in the same category as a geometric theorem. Sorry for the rant, too much meta-theory in my background.

  • Brandon
    5 years ago
    Oct 03, 2007

    The answer is 2, 2, and 9.
    The answer would change to 1, 6, and 6.

You must log on before posting a comment.

Are you a new visitor? Register Here