MathDB
Problems
Contests
National and Regional Contests
Kazakhstan Contests
Kazakhstan National Olympiad
2015 Kazakhstan National Olympiad
5
find all possible permutations
find all possible permutations
Source:
January 10, 2015
factorial
Problem Statement
Find all possible
{
x
1
,
x
2
,
.
.
.
x
n
}
\{ x_1,x_2,...x_n \}
{
x
1
,
x
2
,
...
x
n
}
permutations of
{
1
,
2
,
.
.
.
,
n
}
\{1,2,...,n \}
{
1
,
2
,
...
,
n
}
so that when
1
≤
i
≤
n
−
2
1\le i \le n-2
1
≤
i
≤
n
−
2
then we have
x
i
<
x
i
+
2
x_i < x_{i+2}
x
i
<
x
i
+
2
and when
1
≤
i
≤
n
−
3
1 \le i \le n-3
1
≤
i
≤
n
−
3
then we have
x
i
<
x
i
+
3
x_i < x_{i+3}
x
i
<
x
i
+
3
. Here
n
≥
4
n \ge 4
n
≥
4
.
Back to Problems
View on AoPS