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×n matrices with entries in the set {1,2,,p} and such that the sum of elements on each row and each column is not divisible by p.