Revised solution, thanks to
a comment elsewhere by bipll,
quoted later.
The approach here is presented for fun
(given a spatially-convenient text editor)
even though it leads to the same solution already reached by
Stiv.
This puzzle is nicely scaled to allow a neat layout of possible solutions.
14 | 1 A = First student's number
13 | 2 1 B = Second student's number
12 | 3 2 1 C = Third student's number
11 | 4 3 2 1
10 | 5 4 3 2 1
9 | 6 5 4 3 2 1 A is shown here for each
8 | 7 6 5 4 3 2 1 possible combination
B 7 | 8 7 6 5 4 3 2 1 of B and C so that
6 | 9 8 7 6 5 4 3 2 1 A + B + C = 16
5 | 10 9 8 7 6 5 4 3 2 1
4 | 11 10 9 8 7 6 5 4 3 2 1
3 | 12 11 10 9 8 7 6 5 4 3 2 1
2 | 13 12 11 10 9 8 7 6 5 4 3 2 1
1 | 14 13 12 11 10 9 8 7 6 5 4 3 2 1
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
- The first student (A) says he knows that the
two other students (B and C) have different numbers.
This eliminates the layout’s entries along the diagonal where B = C,
shown in ( )
parentheses.
14 | 1
13 | 2 1
12 | 3 2 1
11 | 4 3 2 1
10 | 5 4 3 2 1 A
9 | 6 5 4 3 2 1
8 | 7 6 5 4 3 2 1
B 7 | 8 7 6 5 4 3 (2) 1
6 | 9 8 7 6 5 (4) 3 2 1
5 | 10 9 8 7 (6) 5 4 3 2 1
4 | 11 10 9 (8) 7 6 5 4 3 2 1
3 | 12 11 (10) 9 8 7 6 5 4 3 2 1
2 | 13 (12) 11 10 9 8 7 6 5 4 3 2 1
1 |(14) 13 12 11 10 9 8 7 6 5 4 3 2 1
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
But if A = any of these parenthesized ( )
numbers,
the first student (A) could not have made their statement.
This eliminates another whole set of diagonals where
A = one of these parenthesized ( )
numbers.
The other two students, and we, can deduce as much.
14 | 1
13 | - 1
12 | 3 - 1
11 | - 3 - 1
10 | 5 - 3 - 1 A
9 | - 5 - 3 - 1
8 | 7 - 5 - 3 - 1
B 7 | - 7 - 5 - 3 (-) 1
6 | 9 - 7 - 5 (-) 3 - 1
5 | - 9 - 7 (-) 5 - 3 - 1
4 | 11 - 9 (-) 7 - 5 - 3 - 1
3 | - 11 (-) 9 - 7 - 5 - 3 - 1
2 | 13 (-) 11 - 9 - 7 - 5 - 3 - 1
1 | (-) 13 - 11 - 9 - 7 - 5 - 3 - 1
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
- After hearing that, the second (B) says
now he knows everyone has different numbers.
This eliminates entries where A = B along a row
as well as where A = C in a column,
shown again in ( )
parentheses.
14 | (1)
13 | . 1
12 | 3 . 1
11 | . 3 . 1
10 | 5 . (3) . 1 A
9 | . 5 . 3 . 1
8 | 7 . 5 . 3 . 1
B 7 | . (7) . 5 . 3 . 1
6 | 9 . 7 . (5) . 3 . 1
5 | . 9 . 7 . (5) . 3 . 1
4 | 11 . 9 . 7 . 5 . 3 . 1
3 | . 11 . 9 . 7 . 5 . (3) . 1
2 | 13 . 11 . 9 . (7) . 5 . 3 . 1
1 | . 13 . 11 . 9 . 7 . 5 . 3 . (1)
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
But if any row of B includes
one of these newly parenthesized ( )
entries,
the second student (B) could not have made their statement.
This eliminates a few rows,
as the other two students and we can again deduce.
- | (-)
13 | . 1
12 | 3 . 1
11 | . 3 . 1
- | - - (-) - - A
9 | . 5 . 3 . 1
8 | 7 . 5 . 3 . 1
B - | - (-) - - - - - -
- | - - - - (-) - - - -
- | - - - - - (-) - - - -
4 | 11 . 9 . 7 . 5 . 3 . 1
- | - - - - - - - - - (-) - -
- | - - - - - - (-) - - - - - -
- | - - - - - - - - - - - - - (-)
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
- After hearing the statement of the second student
the third (C) says that now he knows everyone’s number.
This can happen only if the column of C
contains exactly one remaining possibility.
. | .
13 | . 1
12 | 3 . 1
11 | . 3 . 1
. | . . . . . A
9 | . 5 . 3 . | 1 |
8 | 7 . 5 . 3 | . | 1
B . | . . . . . | . | . .
. | . . . . . | . | . . | . |
. | . . . . . | . | . . | . | .
4 | 11 . 9 . 7 | . | 5 . | 3 | . | 1 |
. | . . . . . | . | . . | . | . | . | .
. | . . . . . | . | . . | . | . | . | . .
. | . . . . . | . | . . | . | . | . | . . .
|____________________|___|_______|___|____|___|_____________
(1) (2) (3) (4) (5)| 6 |(7) (8)| 9 |(10)| 11|(12)(13)(14)
C
Three possibilities remain for A,B,C and I
haven’t figured out
didn’t understand
how any of them may be further eliminated.
. | .
- | . -
- | - . -
- | . - . - A = 1, B = 9, C = 6
. | . . . . . /
9 | . - . - . | 1 |
- | - . - . - | . | - A = 3, B = 4, C = 9
B . | . . . . . | . | . . /
. | . . . . . | . | . . | . / A = 1, B = 4, C = 11
. | . . . . . | . | . . | ./| . /
4 | - . - . - | . | - . | 3 | . | 1 |
. | . . . . . | . | . . | . | . | . | .
. | . . . . . | . | . . | . | . | . | . .
. | . . . . . | . | . . | . | . | . | . . .
|____________________|___|_______|___|___|___|____________
- - - - - | 6 | - - | 9 | - | 11| - - -
C
New conclusion
Then came
the comment by bipll
elsewhere:
If student #2 has 9, it knows all the numbers are different
before student #1’s answer. – bipll
Here is the second student’s statement again,
noting the word “now.”
- After hearing that, the second (B) says
now he knows everyone has different numbers.
This can be taken to mean that the second student
did not already know that A ≠ B ≠ C
before hearing the first student’s statement.
Three more rows of B on the original layout may be eliminated because
all entries on those rows have A ≠ B ≠ C,
in which case B would have known as much from the start.
These rows are highlighted with yet more ( )
parentheses.
All entries are also shown, unadorned,
where A = B, A = C or B = C
to demonstrate that every other row has at least one such entry.
14 | 1
13 | (2) (1)
12 | 2
11 | (4) (3) (2) (1)
10 | 3 A
9 | (6) (5) (4) (3) (2) (1)
8 | 4
B 7 | 7 2
6 | 6 5 4
5 | 6 5
4 | 8 6 4
3 | 10 3
2 | 12 7 2
1 | 14 1
|_________________________________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14
C
This does reduce the possibilities for A,B,C to just two,
of which I haven’t figured out, or been told,
how the third student (C) could distinguish just one.
(Reinterpreting “now” in that student's statement
doesn’t seem to help.)
. | .
. | (.) (.)
. | . . .
. | (.) (.) (.) (.)
. | . . . . .
- | (.) (.) (.) (.) (.) (-)
. | . . . . . . . A = 3, B = 4, C = 9
B . | . . . . . . . . /
. | . . . . . . . . | . / A = 1, B = 4, C = 11
. | . . . . . . . . | ./| . /
4 | . . . . . . . . | 3 | . | 1 |
. | . . . . . . . . | . | . | . | .
. | . . . . . . . . | . | . | . | . .
. | . . . . . . . . | . | . | . | . . .
|________________________________|___|___|___|____________
. . . . . - . . | 9 | . | 11| . . .
C