This is being asked in the context of finding pairs of numbers that make the expression $a^b$ invariant to swapping exponent and base.
Let's say I have two distinct natural numbers $X,Y$, where:
$$\frac{X}{Y} = \frac{\ln(X)}{\ln(Y)}$$
Can this happen for only finitely many distinct $X,Y \in \mathbb{N}$
Here's a specific example I found:
$$(2,4): \ln(2)/\ln(4)=1/2$$