Let $A_n=\{(a_1,a_2,\dots,a_n) :\sum_{i=1}^na_i=0\mod{n}\}$, where $a_i\in[n-1]$. How many elements are in $A_n$? My initial attempt was a stars-and-bars argument.
For example, let $n=4$. Then we need to consider $4k$ stars ($k\in\mathbb{N}$) and $3$ bars.
If $k=1$, then there is only one way, namely $*|*|*|*$, giving $1+1+1+1$.
If $k\geq2$, we need the restriction that there may be no more than $3$ starts between any $2$ bars. I'm not sure how to account for this restriction.
Note that I consider different orderings of the sum as different summations, e.g. $1+2+3+2$ is different than $2+3+2+1$. However, a summation such as $2+2+1+3$, is the same as $2+2+1+3$ (the $2$s being switched).