Problem

Source: 2020 Thailand October Camp 3.2

Tags: combinatorics, table



Let $d\geq 1$ and $n\geq 0$ be integers. Find the number of ways to write down a nonnegative integer in each square of a $d\times d$ grid such that the numbers in any set of $d$ squares, no two in the same row or column, sum to $n$.