Problem

Source: Dutch TST 2024, 2.2

Tags: algebra, functional equation, algebra proposed



Find all functions $f:\mathbb{Z}_{>0} \to \mathbb{Z}_{>0}$ such that for all positive integers $m,n$ and $a$ we have a) $f(f(m)f(n))=mn$ and b) $f(2024a+1)=2024a+1$.