Problem 747: (2024 AIME II, 2)
A list of positive integers has the following properties: $\bullet$ The sum of the items in the list is $30$. $\bullet$ The unique mode of the list is $9$. $\bullet$ The median of the list is a positive integer that does not appear in the list itself. Find the sum of the squares of all the items in the list.
- The median is not an entry, so the list has even length, and the two middle entries average to an integer not in the list.
- With four entries: $9,9$ and two others summing to $12$, distinct and not $9$; the median condition forces the list $5,7,9,9$ (median $8$).
- Longer lists fail (the mode would not be unique or the sum too large). The sum of squares is $25+49+81+81=236$. The answer is $\boxed{236}$.
A list of positive integers has the following properties: $\bullet$ The sum of the items in the list is $28$. $\bullet$ The unique mode of the list is $8$. $\bullet$ The median of the list is a positive integer that does not appear in the list itself. Find the sum of the squares of all the items in the list.