My question is about when a logarithm is rational
for example $$\log _4 32=5/2$$ and it is rational,
but $$\log _433=2.5221970596792267...$$
is not.
What should be the relation between a and b in order the logarithm below to be rational?
$$\log _ab$$