MathDB
2023 Iran MO 2nd round P3

Source: 2023 Iran MO 2nd round

May 17, 2023
combinatorics

Problem Statement

3. We have a n×nn \times n board. We color the unit square (i,j)(i,j) black if i=ji=j, red if i<ji<j and green if i>ji>j. Let ai,ja_{i,j} be the color of the unit square (i,j)(i,j). In each move we switch two rows and write down the nn-tuple (a1,1,a2,2,,an,n)(a_{1,1},a_{2,2},\cdots,a_{n,n}). How many nn-tuples can we obtain by repeating this process? (note that the order of the numbers are important)