Good girls and bad boys (6)

Logic Level 2

On an island, there is this strange pattern - boys always lie while girls always tell the truth. You encounter three children.

  • The oldest one says, "The number of boys is an even number."

  • The middle one says, "The number of boys is an odd number."

  • The youngest one says, "My two older siblings have the same gender."

Let 1 denote boys and 0 girls. In order of birth, identify the gender of each child and convert it into a number accordingly. Submit your answer as a string of 3 ones and/or zeroes. For example, if all three are boys, then your answer is 111.


The answer is 11.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Noel Lo
Jan 27, 2016

Between the two older siblings, one must be telling the truth while the other must be lying as the number of boys is either even or odd. This means among them, one is a boy, the other a girl. This means the youngest child is lying. So the youngest child is a boy. Now we can tell in total we have two boys and one girl. So the number of boys is even. In other words, the oldest one is a truth teller (and hence a girl) while the middle one is a liar (and hence a boy).

Our desired answer is 011 (girl, boy, boy).

Nice solution :)

Rohit Udaiwal - 5 years, 4 months ago

Log in to reply

Thank you!!!

Noel Lo - 5 years, 4 months ago

It should be "number of boys in the family" and not just "number of boys". Someone could get confused

Brian Wang - 5 years, 4 months ago

These problems are getting harder...I'm loving it...BTW doesn't order of birth here implies from youngest to oldest i.e 110??

Rishabh Jain - 5 years, 4 months ago

Log in to reply

Oldest to youngest cos the oldest is born first. :)

Noel Lo - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...