Problem

Source:

Tags: modular arithmetic, algebra, polynomial, linear algebra, matrix, combinatorics proposed, combinatorics



Let $p$ be a positive integer, $p>1.$ Find the number of $m\times n$ matrices with entries in the set $\left\{ 1,2,\dots,p\right\} $ and such that the sum of elements on each row and each column is not divisible by $p.$