Problem

Source: Thailand TSTST 2021, test 2, P3

Tags: function, algebra



Let $S$ be the set of the positive integers greater than $1$, and let $n$ be from $S$. Does there exist a function $f$ from $S$ to itself such that for all pairwise distinct positive integers $a_1, a_2,...,a_n$ from $S$, we have $f(a_1)f(a_2)...f(a_n)=f(a_1^na_2^n...a_n^n)$?