Let $S = \{1, 2, 3, 4, 5, 6, 7\}$. Then the number of possible functions $f : S \to S$ such that $f(m \cdot n) = f(m) \cdot f(n)$ for every $m, n \in S$ and $m \cdot n \in S$, is equal to ______.
Numerical-value question: the answer is a number.
Show answer
The answer is 490.
Key from source paper