There are $n$ real numbers around the circle and among any consecutive 3 one is arithmetic mean of the other two. Prove that all the numbers are the same or $3\mid n$.
Hint was to use a linear algebra.
It is obviously that if among some three consecutive numbers some two are the same then all are three the same: Say we have $$(a,a,b)\implies b ={a+a\over 2}= a\;\;\;{\rm or}\;\;\;a ={a+b\over 2} \implies a=b$$
But then all the numbers are the same. So we can assume that among any consecutive 3 there are all different.
Any way, if all the number are $a_1,a_2,....,a_n$ then for any three consecutive (inidices are modulo $n$) we have $$a_{i-1}+a_i+a_{i+1} \equiv_3 0$$
Reduce all the numbers $\bmod 3$. The property that any three neighboring numbers can be arranged to be in AP is retained. If there are two different values next to each other the value clockwise must be the third residue to make the AP work. We must therefore have the circle be $a,b,c,a,b,c,\ldots c$ assigning one residue to each letter so that when it closes we still meet the AP requirement, so the number of terms is a multiple of $3$.
If there are not two different values next to each other all the numbers are equivalent $\bmod 3$. Subtract off the residue and all the numbers will be multiples of $3$. Divide by $3$ and repeat the argument. If the numbers are not all the same, there is a multiple of $3$ of them. If the numbers are all the same $\bmod 3$, subtract the residue and divide by $3$. After enough subtractions and divisions, if you don't find a difference all the numbers will be $0$ and all the numbers started out the same.