DR.WANG Mathematics中文

2023 AIME II · Question 10

Number theory · modular arithmetic · multiset permutations · factor counting · counting

Problem outline

Let NN count placements of 11 through 1212, once each, in a 2×62\times6 grid, with no edge-neighboring entries congruent modulo 33. How many positive divisors does NN have?

Show answer and methods 1 methods

Answer

144

Method 1 Record the missing residue in each column

Each column uses two of the three residues. Each residue appears four times overall, so it must be missing in exactly two columns. There are 6!/(2!)3=906!/(2!)^3=90 possible ordered lists of missing residues.

Fix such a list and choose the top residue of the first column in two ways. In each subsequent column an overlapping residue must switch rows. This fixes the ordering uniquely whether the two consecutive residue pairs agree or share just one element.

There are 180180 residue grids. Permuting four numbers of each residue gives N=180(4!)3=211355N=180(4!)^3=2^{11}3^5 5, which has (11+1)(5+1)(1+1)=144(11+1)(5+1)(1+1)=144 divisors.

Source and attribution

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

Original question (external)