Geometry Solver
Home › Counting and number theory

When do same-group and mixed-group handshakes match?

Count each pair once

Within groups of sizes and , the pair count is . Across the groups it is . Equating the two counts simplifies to .

Problem

A class has 30 children. On a day when some are absent, every pair of children present shakes hands once. The number of handshakes between children of the same sex equals the number between boys and girls. What is the fewest number absent? If attendance is as large as possible, how many girls could be present?

Answer

At least are absent. There can be or girls present.
The two possible group sizes are 10 and 15, in either order.

Step-by-step solution

1. Write both counts

If boys and girls attend, same-group handshakes total . Mixed handshakes total .

2. Simplify the equality

Multiplying by 2 and rearranging gives , or . Attendance must therefore be a perfect square.

3. Use the class limit

The largest square no greater than 30 is 25, so at least are absent. With and , the groups have sizes 10 and 15. Either size may be the number of girls.

Add to Chrome - solve your own

Screenshot any problem on your screen and get the steps. Chrome on a computer; free.