A school has $n$ students and some super classes are provided for them. Each student can participate in any number of classes that he/she wants. Every class has at least two students participating in it. We know that if two different classes have at least two common students, then the number of the students in the first of these two classes is different from the number of the students in the second one. Prove that the number of classes is not greater that $\left(n-1\right)^2$.
Problem
Source:
Tags: combinatorics, double counting
30.04.2010 21:06
its very easy . just notice that if two classes have the same number of students , then they have at max 1 student in common . with a simple double counting you can find out that the number of classes with exactly x students is at max C(n,2)/C(x,2) . so the number of classes is the sum of all these numbers and is smaller than (n-1)(n-1) .
05.05.2010 14:28
Very interesting. Can you please explain how did you apply the double counting here? I'll be very grateful if you do : )
05.05.2010 22:21
The number of pairs of students $a, b$ we can choose is $\binom{n}{2}$. Suppose there are $X$ classes with $x$ students in. Let $C$ be one such class. We can choose $\binom{x}{2}$ pairs of students from $C$. But any pair from $C$ we will not find in any other class, because we know the classes only share one student. So the number of pairs of students $a, b$ we can choose such that $a$ and $b$ share a class of size $x$ is exactly $X \binom{x}{2}$, but clearly this is not more than the total number of pairs we can choose without any restriction. So \[X \binom{x}{2} \leq \binom{n}{2},\] so \[X \leq \frac{\binom{n}{2}}{\binom{x}{2}}\]
07.05.2010 23:04
Thank you for a detailed explanation.
09.05.2010 13:04
After the double counting, how do you show they all add up to less than $(n-1)^2$?
26.05.2010 01:34
$\sum_{x=2}^n \frac{1}{\binom{x}{2}} = 2\left(1-\frac{1}{n}\right)$. This is the most famous telescopic sum ever (in a slight disguise).
28.05.2010 20:35
Another approach: Each pair of students can give us at most $n-1$ classes. If it gave us more, there would be two classes of the same size with a common pair. So all pairs of students can give us at most $ {(n-1)} \binom{n}{2} $ classes. But, in this manner we counted every $i$-sized class $ \binom{i}{2} $ times. This leads us to the expression : ${ {\frac{\binom{n}{2}}{\binom{2}{2}}} + {\frac{\binom{n}{2}}{\binom{3}{2}}} + ... + {\frac{\binom{n}{2}}{\binom{n}{2}}}} $, which gives exactly the upper bound.
20.11.2017 21:51
I used the last technic, but I didn't know the result of this expression... From Darij it's the "most famous telescopic sum ever", but it didn't ring a bell at all to me.
09.04.2020 00:07
02.07.2021 17:27
A stronger bound is the number of classes can't exceed $\binom{n}{2}$. Solution. Let there be $k$ students. Let $T$ be the number of triples of the form $(student, student, \text{number of students in the class})$ where the two students is in the class with the specified number of students. We have $$k \leq T \leq \binom{n}{2}$$It's enough to show that $$\binom{n}{2}\leq (n-1)^2 \iff n \ge 2 \text{ or } n \leq 1$$
29.03.2022 20:56
Let $A_k$ be number of classes with $k$ students. Note that each $2$ students can only participate in one of these clases so $\binom{n}{2} \ge \binom{k}{2} A_k$. Let $t$ be number of clases so we have $t = A_2 + ... + A_n$ so $t \le \binom{n}{2}(\frac{1}{\binom{2}{2}} + ... + \frac{1}{\binom{n}{2}}) = n(n-1)(1 - \frac{1}{2} + ... - \frac{1}{n}) = n(n-1)(\frac{n-1}{n}) = (n-1)^2$.
02.01.2024 17:52
Solved with my dear friend cursed_tangent1434 Let there be $n_i$ classes with size $i$. Double count the number of pairs (student pair, class). We get the inequality: \[\binom{i}{2}\cdot n_i\leq \binom{n}{2}\]So, \[n_i\le\frac{\binom{n}{2}}{\binom{x}{2}}\]Then, note that the number of classes is at most: \[\sum_{i=2}^{n}n_i=\binom{n}{2}\sum_{i=2}^n\frac{1}{\binom{i}{2}} = (n-1)^2\]due to a simple telescopic summing. This concludes the proof. Remark. Kinda neat problem in my opinion, Iran MO/TST problems are so fun!