Show that from any five integers, one can always choose three of these integers such that their sum is divisible by 3.
I wasn't sure how to solve this problem, can someone please help? Thanks!
Show that from any five integers, one can always choose three of these integers such that their sum is divisible by 3.
I wasn't sure how to solve this problem, can someone please help? Thanks!
First we assume it is possible for a set that does not satisfy the conditions to exist, and then we consider all numbers modulo $3$. Note that we cannot have three numbers the same mod 3 as adding them all together would yield a multiple of $3$. But this means that there is at least one number that is $0$, one number that is $1$ and one that is $2$ ($\text{mod }3$), and summing these gives a multiple of three, giving a contradiction.