MathDB
Computational Set Construction

Source: STEMS 2023 Maths CAT A Part A P2

January 8, 2023
combinatoricsSTEMS

Problem Statement

Consider the set SS of permutations of 1,2,,20221, 2, \dots, 2022 such that for all numbers kk in the permutation, the number of numbers less than kk that follow kk is even.
For example, for n=4;S={[3,4,1,2];[3,1,2,4];[1,2,3,4];[1,4,2,3]}n=4; S = \{[3,4,1,2]; [3,1,2,4]; [1,2,3,4]; [1,4,2,3]\}
If S=(a!)b|S| = (a!)^b where a,bNa, b \in \mathbb{N}, then find the product abab.