Problem

Source: 2021 Thailand Online MO P9 (Mock TMO contest)

Tags: number theory



For each positive integer $k$, denote by $\tau(k)$ the number of all positive divisors of $k$, including $1$ and $k$. Let $a$ and $b$ be positive integers such that $\tau(\tau(an)) = \tau(\tau(bn))$ for all positive integers $n$. Prove that $a=b$.