(a,b)=(4,2)。
Let d be the greatest common divisor of a and b, a=dp, b=dq, where p,q are coprime positive integers and p>q. Substitute into the original equation:
(d(p−q))d2pq=(dp)dq⋅(dq)dp⇔(d(p−q))dpq=(dp)q⋅(dq)p⇔ddpq(p−q)dpq=dp+qpqqp.
i. First, prove p+q<dpq. Otherwise, p+q≥dpq, rearrange to get (p−q)dpq=dp+q−dpqpqqp, so p,q are both factors of (p−q)dpq. But (p−q,p)=(p−q,q)=(p,q)=1, so p=q=1, which is not valid.
Since p+q<dpq, rearrange to get ddpq−p−q(p−q)dpq=pqqp, so p−q divides pqqp. But (p−q,p)=(p−q,q)=1, so p−q=1, i.e., p=q+1. Substitute back to get
ddpq−p−q=pqqq+1.(1)
ii. Since p,q are coprime, d can be written as d=m×n, where m,p share the same prime factors, n,q share the same prime factors. Thus (m,n)=1, from (1) we get
mdpq−p−q=pq=(q+1)q.(2)
Since the exponents dpq−p−q and q are coprime, m must be a qth power of some integer. Let m=tq, then tdpq−p−q=q+1. Since q+1>1, t>1.
iii. If q=2, then t6d−5=3, so d=1,t=3,q=2,p=3, i.e., (a,b)=(3,2). But (a,b)=(3,2) does not satisfy the original equation, discard.
If q≥3, then dpq−p−q=dq(q+1)−(2q+1)≥3(q+1)−(2q+1)=q+2. Then q+1=tdpq−p−q≥tq+2≥2q+2≥q+2 (by binomial theorem), which is not valid.
So q=1,p=2. From t2d−3=2, we get t=2,d=2. Thus (a,b)=(4,2). Substitute back into the original equation and it holds.
Therefore, (a,b)=(4,2) is the unique solution.