Let $n=2 m+1$, where $m$ is a positive integer. Prove that the $n$ -by-n array $A$ whose entry $a_{i j}$ in row $i$, column $j$ satisfies
$$a_{i j}=(m+1) \times(i+j) \text { (arithmetic mod } n \text { ) }$$
is a symmetric, idempotent Latin square of order $n .$ (Remark The integer $m+1$ is the multiplicative inverse of 2 in $Z_{n}$. Thus, our prescription for $a_{i j}$ is to "average" $i$ and $j$.)