Say I have n integers bigger than zero with $n > 3$. I need to choose them in a way that leads to the arithmetic mean of any three of these integers to be one of the integers as well. I figured that for the arithmetic mean of any three integers to be an integer again, they all need to be modulo 3 equivalent. This means that every of these integers can be described as $3i+k; i \in \mathbb{N}$ with $k \in \{0, 1, 2\}$ and the same for all numbers.
The airthmetic mean of three of these numbers is $\frac{(3i_1+k)+(3i_2+k)+(3i_3+k)}{3} = i_1+i_2+i_3+k$. From the previous assumption of how the numbers must be able to be represented follows that $i_1+i_2+i_3$ needs to be a multiple of 3 as well. Which is the exact same problem I was trying to solve with examining the modulo. I was hoping to reduce the set of numbers that might possibly be the integers in question by solving a smaller part of the problem first.
Which ultimately leads me to my question: Is my idea usable in its basics (and I made 'minor' mistakes) or completely flawed?