Given a $ a \in \mathbb N $, what is the lowest $ b \in \{1, ..., a \} $ for which $ log_b a \in \mathbb N $ ? How to compute this function in a non-iterative way?
Examples (even if too obvious):
$ a = 1 \Rightarrow b = 1 $,
$ a = 2 \Rightarrow b = 2 $,
$ a = 3 \Rightarrow b = 3 $,
$ a = 4 \Rightarrow b = 2 ...$,