DR.WANG Mathematics中文

2015 USAJMO · Question 6

Counting & combinatorics · sequences · grid

Problem outline

Distribute m≥1m\ge1 indistinguishable stones among the cells of an n×nn\times n grid, with no limit per cell. A move chooses the four corners of a rectangle and transfers one stone from each end of one diagonal to the corresponding ends of the other diagonal. Two distributions are equivalent if moves connect them. Determine the number of equivalence classes.

Show answer and methods 1 methods

Answer

(m+n−1n−1)2\displaystyle \binom{m+n-1}{n-1}^2.

Method 1 Use row and column sums as a complete signature

Record the ordered row sums (r1,…,rn)(r_1,\ldots,r_n) and column sums (c1,…,cn)(c_1,\ldots,c_n). Every rectangle move preserves both lists.

Temporarily label the stones and write their positions as (xi,yi)(x_i,y_i). The row sums specify the multiset of xix_i, and the column sums specify the multiset of yiy_i. Configurations with the same signature differ only in how the two coordinate lists are paired.

Any re-pairing is a permutation of the yiy_i, hence a product of transpositions. Swapping two yy-coordinates in distinct rows and columns is one rectangle move; if the rows or columns agree, the swap does not change the unlabeled configuration. Thus equal signatures imply equivalence.

Every pair of signatures is realizable by listing each row label rir_i times and each column label cjc_j times and pairing the two lists arbitrarily.

Each ordered list of row sums is a weak composition of mm into nn parts, giving (m+n−1n−1)\binom{m+n-1}{n-1} choices. The column list has the same independent count, so the number of classes is the square of this binomial coefficient.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)