ISL 2018 N2
Let be a positive integer. Each cell of an table contains an integer. Suppose that the following conditions are satisfied: (i) Each number in the table is congruent to 1 modulo ; (ii) The sum of numbers in any row, as well as the sum of numbers in any column, is congruent to modulo . Let be the product of the numbers in the row, and be the product of the numbers in the column. Prove that the sums and are congruent modulo . (Indonesia)
Dataset text NuminaMath olympiads. Quoted with source.
Official text: IMO 2018 Shortlist booklet, page 9.
Solutions
Official solution Solution 1 by the IMO Problem Selection Committee
The terms of the source let olymmath link to this solution but not copy it. Read the solution (IMO official site).