Problem

Source: Switzerland - 2022 Swiss Final Round p3

Tags: algebra, functional equation, functional



Let $N$ be the set of positive integers. Find all functions $f : N \to N$ such that both $\bullet$ $f(f(m)f(n)) = mn$ $\bullet$ $f(2022a + 1) = 2022a + 1$ hold for all positive integers $m, n$ and $a$.