[Combinatorics]
Problem: In each town in ARMLandia, the residents have formed groups, which meet each week to share math problems and enjoy each others' company over a potluck-style dinner. Each town resident belongs to exactly one group. Every week, each resident is required to make one dish and to bring it to his/her group.

It so happens that each resident knows how to make precisely two dishes. Moreover, no two residents of a town know how to make the same pair of dishes. Shown below are two example towns. In the left column are the names of the town's residents. Adjacent to each name is the list of dishes that the corresponding resident knows how to make.

| ARMLton |  |
| :--- | :--- |
| Resident | Dishes |
| Paul | pie, turkey |
| Arnold | pie, salad |
| Kelly | salad, broth |


| ARMLville |  |
| :--- | :--- |
| Resident | Dishes |
| Sally | steak, calzones |
| Ross | calzones, pancakes |
| David | steak, pancakes |

The population of a town $T$, denoted $\operatorname{pop}(T)$, is the number of residents of $T$. Formally, the town itself is simply the set of its residents, denoted by $\left\{r_{1}, \ldots, r_{\mathrm{pop}(T)}\right\}$ unless otherwise specified. The set of dishes that the residents of $T$ collectively know how to make is denoted $\operatorname{dish}(T)$. For example, in the town of ARMLton described above, pop(ARMLton) $=3$, and dish(ARMLton) $=$ \{pie, turkey, salad, broth\}.

A town $T$ is called full if for every pair of dishes in $\operatorname{dish}(T)$, there is exactly one resident in $T$ who knows how to make those two dishes. In the examples above, ARMLville is a full town, but ARMLton is not, because (for example) nobody in ARMLton knows how to make both turkey and salad.

Denote by $\mathcal{F}_{d}$ a full town in which collectively the residents know how to make $d$ dishes. That is, $\left|\operatorname{dish}\left(\mathcal{F}_{d}\right)\right|=d$.
Let $n=\operatorname{pop}\left(\mathcal{F}_{d}\right)$. In terms of $n$, compute $d$.

Solution: With $d$ dishes there are $\left(\begin{array}{l}d \\ 2\end{array}\right)=\frac{d^{2}-d}{2}$ possible pairs, so $n=\frac{d^{2}-d}{2}$. Then $2 n=d^{2}-d$, or $d^{2}-d-2 n=0$. Using the quadratic formula yields $d=\frac{1+\sqrt{1+8 n}}{2}$ (ignoring the negative value).

Final answer: $d=\frac{1+\sqrt{1+8 n}}{2}$