Permutations problem
Source: Russian TST 2019, Day 4 P2
March 22, 2023
combinatoricspermutations
Problem Statement
For each permutation of the set we define its correctness as the number of triples such that the number lies between the numbers and . Find the difference between the number of permutations with even correctness and the number of permutations with odd correctness if a) and b) .