Olympiad Maths Prep

Library / /14 of 28

Combinatorics Difficulty 5.5 AIME, harder Prove it Ukraine

At the New year's party each boy gave each girl one candy and each girl gave each boy one cake. After that each boy ate two of given cakes and each girl ate three of given candies. It turned out that kids had eaten quarter of all given things. What is the maximal number of kids that could participate in this party?

Solution

Let us denote the number of boys at the party by xx and the number of girls by yy. Then from the problem statement we can get the following equality: 2xy=4(3y+2x)2xy = 4(3y + 2x), which is equivalent to the equation (x6)(y4)=24(x-6)(y-4) = 24. Now it is enough to consider all divisors of 2424 and to get all possible xx and yy, among which the greatest value of (x+y)(x+y) is achieved in the two cases:
{x6=1y4=24 or {x6=24y4=1 \begin{cases} x-6=1 \\ y-4=24 \end{cases} \text{ or } \begin{cases} x-6=24 \\ y-4=1 \end{cases}
or this greatest value is:
x+y=7+28=30+5=35. x+y=7+28=30+5=35.

Looking for a route rather than an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.