New Year's Countdown Day 3: Three Shirts

Logic Level 2

Derrick, Eric, and Frederick are standing in a line with Derrick in the back, Eric in the middle, and Frederick in the front. Each person is wearing a shirt with an integer between 1 and 5 inclusive printed on the back, and each person can only see the numbers on the backs of the people in front of them.

Garrick, who can see the numbers behind everyone's shirts, announces truthfully that all the numbers are unique and that they sum to a multiple of three. Then, he asks if anybody can figure out what number is on their own shirt.

Some time passes with nobody saying anything. Suddenly, Frederick states that he knows what number is on his shirt. What number is it?

Details and Assumptions:

  • Assume that Derrick, Eric, and Frederick are all perfectly logical, i.e. they can deduce as much as they can from the information they are given.
  • Assume that if a person figures out which number is on his back, then he will immediately say so. If he cannot figure it out, then he will keep quiet.

This problem is part of the set New Year's Countdown 2017 .
1 2 3 4 5 This situation is impossible

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

Steven Yuan
Dec 2, 2017

For this solution, we work modulo 3. Let E E = Eric's number and F F = Frederick's number. The key to solving the problem is that Derrick and Eric's silence gives Frederick additional information that he can use to deduce his number.

If Derrick sees ( E , F ) ( 2 , 1 ) (E, F) \equiv (2, 1) or ( 1 , 2 ) , (1, 2), then he knows that he must have the number 3 on his back because it is the only integer between 1 and 5 inclusive that will make the overall sum a multiple of 3, as Garrick stated. Since Derrick does not say anything, we discard these possibilities. Derrick can't see ( E , F ) ( 1 , 1 ) (E, F) \equiv (1, 1) or ( 2 , 2 ) (2, 2) as those cases cannot have the overall sum be a multiple of three, so we deduce Derrick must see one of ( E , F ) ( 1 , 0 ) , ( 0 , 1 ) , ( 2 , 0 ) , ( 0 , 2 ) . (E, F) \equiv (1, 0), (0, 1), (2, 0), (0, 2).

Now, Eric deduces the information about Derrick, and since Derrick remained silent, he knows that Derrick saw one of the four previously mentioned cases. If Eric saw F 1 , 2 , F \equiv 1, 2, then he would know he has the number 3, since it is the only integer from 1 to 5 inclusive that is 0 modulo 3. Since Eric does not say anything, he must have seen F 0. F \equiv 0.

Finally, Frederick deduces the information on Eric and realizes that he knows what number is behind his back - it must be F = 3 F = \boxed{3} as Eric must have seen that number. Note that Frederick is the only person who can tell what number is behind his back; there is still ambiguity in what numbers Derrick and Eric have.

"Each person is wearing a shirt with an integer between 1 and 5 inclusive printed on the back".

If that is the case, how can Derrick see 0 on Frederick's t-shirt?

Sava Sergiu - 3 years, 5 months ago

Log in to reply

I was working modulo 3 for the solution, so 3 would be 0 mod 3, 1 and 4 would be 1 mod 3, and 2 and 5 would be 2 mod 3.

Steven Yuan - 3 years, 5 months ago

This doesn't make sence, let's say Garrick sees a 1 and 3. he could then ether have 2 and 5, how is then Frederick suppost to know what his number is? Possible combinations: 1-2-3 2-3-4 3-4-5 1-3-5

2-3 shows that the last number can either be 1 or 5 3-4 shows that the last number can either be 2 or 5

Jacob Lauvanger - 3 years, 1 month ago

Log in to reply

Frederick is supposed to know by Eric not knowing.

Derrick can only answer if there's a 3 on his back. If he can't, Eric and Frederick both knows the 3 must be on either of their backs. If Eric saw a non-3 on Derrick, he'd be the lucky guy to answer the 3, but since Eric stayed silent, Frederick knows it must be on his back.

Saya Suka - 2 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...