32 people were invited at a party and started exchanging handshakes. Because of the confusion, each of them shook hands with each other multiple times: at least twice and up to X times. However, every two people exchanged different number of handshakes from every other two. What is the minimum possible number X, so that the above condition is met?
What am I missing?
I have clearly not understood the question as the answer for me is obvious. I would have liked to ask "what am I missing?" in a comment, but as I have less than 50 reputation I cannot yet make comments. So here is my understanding:
32 people meet and exchange handshakes with everyone else. Each pair shaking hands had between 2 and X handshakes. And no pair had the same number of handshakes. What is the minimum number of X?
With 32 people the number of pairs is, as you said, 496. So let one pair have 2 handshakes, another pair have 3 handshakes, another pair have 4 handshakes, etc, with the last pair having $2+496-1 = 497$ handshakes. Then X = 497.
So what am I missing?