In any set of $181$ square integers, prove that one can always find a subset of $19$ numbers, sum of whose elements is divisible by $19$.
Someone on AOPS:
Direct checking shows that any square is $0,1,4,9,16,6,17,11,7,5 \mod [19].$ Thus there are exactly $10$ distinct possibilities. From the pigeon-hole principle, since you used $181$ numbers at least one of the class contains at least $19$ of your squares. Adding these $19$ squares from the same class leads to the result.
Can anyone explain me this solution, or some other?
Thanks!
PS: This question is from Indian National Mathematical Olympiad 1994, Problem 3