MathDB
Problems
Contests
National and Regional Contests
Iran Contests
Iran MO (2nd Round)
2023 Iran MO (2nd Round)
P3
P3
Part of
2023 Iran MO (2nd Round)
Problems
(1)
2023 Iran MO 2nd round P3
Source: 2023 Iran MO 2nd round
5/17/2023
3. We have a
n
×
n
n \times n
n
×
n
board. We color the unit square
(
i
,
j
)
(i,j)
(
i
,
j
)
black if
i
=
j
i=j
i
=
j
, red if
i
<
j
i<j
i
<
j
and green if
i
>
j
i>j
i
>
j
. Let
a
i
,
j
a_{i,j}
a
i
,
j
be the color of the unit square
(
i
,
j
)
(i,j)
(
i
,
j
)
. In each move we switch two rows and write down the
n
n
n
-tuple
(
a
1
,
1
,
a
2
,
2
,
⋯
,
a
n
,
n
)
(a_{1,1},a_{2,2},\cdots,a_{n,n})
(
a
1
,
1
,
a
2
,
2
,
⋯
,
a
n
,
n
)
. How many
n
n
n
-tuples can we obtain by repeating this process? (note that the order of the numbers are important)
combinatorics