3

While preparing for the Putnam math competition my teacher listed the following problem: Solving $a^b = b^a$ for $a,b \in \Bbb N$ where $a,b$ are distinct. I suspect the answer is that there is only one solution: $a=2$ and $b=4$. Now I start with the obvious that $b*ln(a) = a*ln(b)$ and clearly since a,b are distinct then either $a<b$ or $a>b$. Now suppose $b>a$ then $\frac{a}{b} = \frac{lna}{lnb}$ . Now here is where I am stuck. Any hints or ideas are much appreciated.

Edit: Upon more thought it seems that a and b most both be even or odd since otherwise $a^b$ would be odd while $b^a$ would be even and vice versa.

1 Answers1

6

A trivial answer would be $a=b$.

For other solutions, we can assume $a>b$ without loss of generality.

Consider $\left(\frac{a}{b}\right)^b$. Because $a^b=b^a$, we have $\left(\frac{a}{b}\right)^b = b^{a-b}$. Note that $b^{a-b}$ has to be a natural number because $a-b \in \mathbb{N}$. Thus $\left(\frac{a}{b}\right)^b \in \mathbb{N}$.

This allows one to write $a=c b$ for some $c \in \mathbb{N}$. Hence $a^b=b^a$ becomes

$$(cb)^b=b^{cb}$$

which implies

$$b=c^{\frac{1}{c-1}}.$$

This yields a solution $b \in \mathbb{N}$ if and only if $c=2$. Furthermore, this results in $b=2$, $a=4$.