Find an algebraic function $f:\Bbb N\to\Bbb N$ such that
$$f(x)=\frac x{\prod_{i|x}^{x-1} f(i)}$$
and
$$f(1)=1$$
for all $x\in\Bbb N$
I allready know two things:
$f(p^k)=p$ where $p$ is prime and $k\in\Bbb N$
$f(apq)=1$ where $p$ and $q$ is two different primes and $a\in\Bbb N$
I'm looking for a specific function, not just an algorithm.