Each person gives a gift to every other person, so the formula is:
\(\text{Total gifts} = n(n-1)\)
where \(n\) is the number of people
\(n(n-1) = 600\)
\(n^2 - n - 600 = 0\)
Use the quadratic formula:
\(n = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)
Here, \(a = 1\), \(b = -1\), \(c = -600\).
\(b^2 - 4ac = 1 + 2400 = 2401\)
\(n = \frac{1 \pm 49}{2}\)
\(n = \frac{50}{2} = 25\) (positive solution)
\(n = \frac{-48}{2} = -24\) (not valid)
There were 25 persons at the party.
Five friends A, B, C, D, and E are sitting in a row facing north, but not necessarily in the same order:
B is to the immediate left of C
E is not at any of the ends
D is to the right of E but not next to C
A is at one of the ends
Who is sitting in the middle?