I have came across this mathematical question, and it has been mind-provoking me, I hope to find some help here.
The question is as follows: Given an SDR (System of Distinct Representatives) set ($a_0,a_1,\ldots,a_n$) in relation to modulo $n$. Let $s=\sum_{i=1}^{n} a_i$. a.) prove that $s=0 \pmod n$ if $n$ is odd. b.) prove that $s=\frac{n}{2} \pmod n$ if $n$ is even.
Thanks!