Pages: 1 2 [3] 4   Go Down
Author Topic: Faites vos jeux messieurs, dames  (Read 2822 times)
0 Members and 1 Guest are viewing this topic.
Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1906
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure what to do with "The sum of their ages is the number of cars in my street."
Without this info I get to 1 4 9 or 1 3 12
Best regards
Jantje
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I presume the fact that the youngest was ill rules out that the younger two are twins (then there wouldn't be a youngest).

I'm not sure about the cars in the street, except that maybe it makes the sum to be an integer.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure what to do with "The sum of their ages is the number of cars in my street."
Without this info I get to 1 4 9 or 1 3 12
Best regards
Jantje
The trick is to get the information that can be derived from the sentences....
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1906
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok I missed one.
my bet : 1 2 18.
Jantje
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The product of the ages = 36, that means the list of possible combinations is:

1 1 36
1 2 18
1 3 12
1 4 9
1 6 6
2 2 9
2 3 6
3 3 4
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

We need to know the name of his street and check how many cars are in it. smiley-wink
Logged

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the answer to the original post.
'G' stands for Girl.
'B' stands for Boy.
'T' stands for Thinnest.
'N' stands for Not-thinnest.

If I just told you I have two children and asked what the odds were that they were both boys the answer would be 1:4 or 20%.
All the possible permutations of children being;

Code:
G G
G B
B G
B B

By telling you that one of my children is a boy I obviously increase the odds since the pair of girls is eliminated. At this point a lot of people go wrong because knowing I have one boy they just consider that the other child has to be either a boy or a girl so the odds must be 1:2 or 50% in fact they are 1:3 or 33% e.g.

Code:
G B
B G
B B

Now I confuse things by throwing in the information that the boy I mentioned is also my thinnest child. At first this appears to be totally redundant information but in fact something strange happens and it makes a big difference to the odds. Here is the complete table of permutations;
Code:
GN GN
GT GN
GN GT
GT GT
BN BN
BT BN
BN BT
BT BT
GN BT
BT GN
GT BT
BT GT
GN BN
BN GN
GT BN
BN GT

Now we can delete all invalid permutations that involve two girls or don't have one male child who is thinnest, this shows that the odds of me having two boy is in fact 1:2 or 50%

Code:
BT BN
BN BT
GN BT
BT GN

The strange bit though is that the odds have changed because there are now two rows containing two boys.

Truth tables are very powerful and help avoid mistakes in logic. Unfortunately they rapidly get very large and, as Nick wrote, you run out of margin.
Logged

Netherlands
Offline Offline
God Member
*****
Karma: 7
Posts: 642
A naughty mind is a joy forever.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We need to know the name of his street and check how many cars are in it. smiley-wink

If you keep in mind it's a dad, there could be 73.5 cars in his street.  smiley-grin
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the complete table of permutations;
Code:
GN GN
GT GN
GN GT
GT GT
BN BN
BT BN
BN BT
BT BT
GN BT
BT GN
GT BT
BT GT
GN BN
BN GN
GT BN
BN GT

Hardly. You cannot have GN GN for example. They both can't be not thinnest. And you can't have GT GT. They both can't be thinnest. My solution (reply #22) was correct.
Logged

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Hardly. You cannot have GN GN for example.
I listed all the possible permutations (valid and invalid) then I said "Now we can delete all invalid permutations".

You got the right answer 50%, but this table from reply #22 is incorrect
Code:
TB G
TG B
TB B
TG G

You included TG G which is invalid as there are two girls, and you only included one permutation with two boys.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A hint ...
The product of the ages = 36, that means the list of possible combinations is:

1 1 36
1 2 18
1 3 12
1 4 9
1 6 6
2 2 9
2 3 6
3 3 4
(2) The sum of their ages is the number of cars in my street.
(3) And to determine their ages you must know that the youngest was ill recently.

3) states that even when you know the number of cars in my street, you still need extra information

...



Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There has to be 'a' youngest so that seems to pin it down to;
Code:
1 2 18 sum 21
1 3 12 sum 16
1 4 9  sum 14
1 6 6  sum 13
2 3 6  sum 11

But I don see how "The sum of their ages is the number of cars in my street" comes into play.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK,

(1) The product of the ages = 36
(2) The sum of their ages is the number of cars in my street.
(3)  And to determine their ages

Given the fact that I know the # cars in my street and I still say the first half of sentence 3, implicates that from the product and sum alone one cannot determine the ages.

1 1 36 sum 38
1 2 18 sum 21
1 3 12 sum 16
1 4 9 sum 14
1 6 6 sum 13
2 2 9 sum 13
2 3 6 sum 11
3 3 4 sum 10

given that sum and product is not enough to determine leaves only 2 options.

1 6 6 sum 13
2 2 9 sum 13

and the youngest was recently ill,  so ....


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah the light comes on - very clever.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recall it took me quite some time too.
The trick is that you must not think from what you know , but from what the other person knows.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: 1 2 [3] 4   Go Up
Jump to: