Combinatorics · Number theory· BDMO 2021 Regional
Let S={1,2,3,⋯ ,12}S = \{1, 2, 3, \cdots, 12\}S={1,2,3,⋯,12}. How many functions f:S→Sf : S \to Sf:S→S are there such that f(f(x))=xf(f(x)) = xf(f(x))=x and f(x)−xf(x) - xf(x)−x is divisible by 3?
This paper's answer key isn't in yet, so mark it yourself.