Problem

Source: Bolivia Ibero TST 2021 Day 1 P2

Tags: function, number theory, Bolivia, TST, functional equation



Let $f: \mathbb Z^+ \to \mathbb Z$ be a function such that a) $f(p)=1$ for every prime $p$. b) $f(xy)=xf(y)+yf(x)$ for every pair of positive integers $x,y$ Find the least number $n \ge 2021$ such that $f(n)=n$