I don't think something like (we can assume that the formula is over $\mathbb{N}$):
$\exists y. 2^y=x$
is allowed (it may be - I am just not sure).
I don't see a way to do it recursively without reaching an infinite formula.
Can anyone help please?
Edit: Using power in the formula is not allowed, and according to my professor this should be done using division and the unique prime factorization of a number.