We have $n$ students which are in $k$ classes. We know that between each two classes, there exist two persons A and B who know each other. Prove that we can put students in $n-k+1$ groups such that all the persons in a group know each other. (the proof is probably with induction)
I don't know how should I approach this question. Should I use induction on $n$ or $k$? how?
P.S:
I found a question similar to this in math.se ... question link
I think this is the same question although the mentioned question has one more condition. (No person in a class know each other!) but unfortunately it seems the inductive answer of that question is somehow incomplete.
I will tell you how far I was able to go with the information you provided.
There are $n$ studentes and $k$ classes. For each pair of classes, two students know each other. There are $\binom{k}{2}$ pairs of classes, therefore there are $2\binom{k}{2}$ students that know each other, i.e. two students for each pair of classes.
Note that $2\binom{k}{2}=\frac{k!}{(k-2)!}$, so that there are at least $\frac{k!}{(2-k)!}$ students that know each other. I say at least because here is where the lack of info comes into place! Can a student $A$ know more than one other student $B$ from another class, or does each student know only one other student $B$ from another class? This is a key question.
Also, do the $k$ classes contain an equal amount of students? In other words, are students distributed evenly among the classes? This type of information is important when it comes to solve the problem.
You'll see if this points aren't clarified how can we know we are not finding any contradictions? For example, if students aren't evenly distributed we could have empty classes where there's no $A$ that knows any $B$; this would affect calculation. If they are distributed evenly, there are pairs of values for $n$, $k$ that don't work; for example, you can't evenly distribute $n=5$ students on $k=3$ classes; a class will always be with one student less. In few words the lesson is: give more info! More info means more help.