Permutations and Turning points
Source: IrMO 2022
May 8, 2022
combinatorics
Problem Statement
Let n 3 be an integer and let (, , , , ) be a permutation of {1, 2, 3, n}. For this permutation we say that is a turning point if 2 t n-1 and ( - )( - ) > 0For example, for n = 8, the permutation (2, 4, 6, 7, 5, 1, 3, 8) has two turning points: = 7 and = 1.For fixed n, let q(n) denote the number of permutations of {1, 2, 3, n} with exactly one turning point. Find all n 3 for which q(n) is a perfect square.