Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2017-part-02 — 176 problems (EN–VI) Question 108

Math Olympiad Vault · MathNet 2017-part-02 — 176 problems (EN–VI)

Question 108

Let $n$ be a positive integer. In how many ways can an $n \times n$ table be filled with integers from $0$ to $5$ such that

a) the sum of each row is divisible by $2$ and the sum of each column is divisible by $3$;

b) the sum of each row is divisible by $2$, the sum of each column is divisible by $3$ and the sum of each of the two diagonals is divisible by $6$?