I was wondering a problem: Is it possible to construct a n*n matrix (call it A) such that each number from 0 to n-1 appears exactly n times and the result of A*A is a zero matrix (after modulo n*n terms in the matrix by n). I know it is obvious for odd n but how about even n?