Assume we can fill a table n×n with all numbers 1,2,…,n2−1,n2 in such way that arithmetic means of numbers in every row and every column is an integer. Determine all such positive integers n. Combinatorial Number Theorynumbers in a tablenational olympiadnumber theory