Ping sent this solution from Thailand.

(1) If 5m = 4m 2n , then 5= 22m+n which is impossible as 2 and 5 are prime so there are no positive integer solutions m and n of this equation.

(2) We have am dn = cn bm . As a and b are coprime, we get am | cn . Because c and d are coprime, so cn | am . This means am = cn . Similarly, bm = dn .

If am = cn and bm = dn , then obviously (a/b )m =(c/d )n .

This implies that am and cn have the same prime factors. Write a= p1 u1 ... pk uk and c= p1 v1 ... pk vk and for all j we have muj = nvj so that
u1 v1 = u2 v2 =...= uk vk = m n .

Similarly for b and d. This is a very special necessary relationship between a and c and also between b and d so solutions rarely occur to the equation:
( 5 4 )m = ( 2 1 )n .

We now show this is a sufficient condition. Conversely suppose a= p1 u1 ... pk uk and c= p1 v1 ... pk vk and
u1 v1 = u2 v2 =...= uk vk .

We call this common ratio n m then uj m= vj n for all j and am = bn . Similarly if corresponding ratios of the powers of the prime factors of b and d are constant and also equal to n m then bm = dn giving
( a b )m = ( c d )n .