Tomi's Challenges - #11

An unknown number of students were entering a classroom on their first day of school. Each student then shook hands with every student except those described by the conditions below:

  • A student didn't shake hands with the student who came right after him or right before him.
  • The k k -th student didn't shake hands with the x x -th student, where \newline x = k + n 2 y ( m o d n ) x=k+\frac{n}{2}\cdot y \pmod n , y y is an arbitrary integer, and n n is the number of students.

If there were 6497 6497 handshakes, how many students were there?

Details and assumptions:

  • It's possible to only make one handshake.

  • No two students entered the classroom at the same time.


The answer is 116.

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

Tomislav Franov
May 2, 2021

It's possible to infer a lot of additional rules just from the conditions given here. Since we have n 2 \frac{n}{2} in the expression with x x , it's safe to assume that n n is even, otherwise we would be dealing with decimal numbers. Next, plugging in y = 0 y=0 yields that no student shook hands with himself, and plugging in y = 1 y=1 yields that the k k -th student never shook hands with the ( k + n 2 ) (k+\frac{n}{2}) -th student. Analoguously, Plugging in y = 1 y=-1 we get that the k k -th student didn't shake hands with the ( k n 2 ) (k-\frac{n}{2}) -th student. All other values of y y are irrelevant because they give us the same conclusions, and therefore no new information.

If we order the students from the one who came to the classroom first to the one who came last, we can see that no adjacent students shook hands. If we visualise this using an n n -gon, we have one more pair of adjacent students - the first one and the last one. The first one and the last one CAN shake hands so we have to count the handshake between the first student and the last student as 1 1 handshake.

We can now see that we have to count all diagonals of the n n -gon which don't connect the k k -th and the ( k n 2 ) (k-\frac{n}{2}) -th student, aswell as the k k -th and the ( k + n 2 ) (k+\frac{n}{2}) -th student. Geometrically, we can see that this means that we can't connect two opposite points, and there are n 2 \frac{n}{2} diagonals connecting two opposite points (Note: "opposite points" are only defined for even values of n n , and n n is even by our assumption). We can see that in the above example of an octagon, which is the number of handshakes without counting the one between the first and last student for n = 8 n=8 , no diagonal intersects the orange circle, which means that there are no diagonals connecting two opposite points.

Therefore, the number of handshakes is:

1 + n ( n 3 ) 2 n 2 \Large 1+\frac{n(n-3)}{2}-\frac{n}{2} , where n ( n 3 ) 2 \frac{n(n-3)}{2} is the number of diagonals in an n n -gon.

Solving the following quadratic equation

1 + n ( n 3 ) 2 n 2 = 6497 \Large 1+\frac{n(n-3)}{2}-\frac{n}{2}=6497

yields n = 116 n=116 or n = 112 n=-112 , from which we conclude that n = 116 n=\boxed{116} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...