# A number theory problem by Dylan Pentland

$\large \displaystyle a{b}^{a}=b{a}^{b}$

We are given the equation above for natural numbers $$a$$ and $$b$$ (not necessarily distinct).

How many solutions for $$(a,b)$$ are there if $$a+b\le1000$$?

×