Let us rewrite the equation: n(n2−5n)=m(m5−1). If n≤m then n2−5n≥m5−1≥n5−1. Contradiction, Thus, n>m. Now n3>n3−5n2+n>n3−5n2+m=m6. Therefore, n3>m6, equivalently n>m2. Let n=m2+k for some k>0. By putting m2=n−k to the main equation
we get 5n2−3m2nk−k3−m=0. Thus, n divides k3+m and n≤k3+m. Now 5n2=k3+3m2kn+m≥n(3m2k+1). Therefore, 5n≥3m2k+1 or 5m2+5k≥3m2k+1. Since m2(3k−5)≤5k−1 then m2≤3k−55k−1=9+3k−544−22k. Therefore, if k>1 then m2≤9. Thus, m takes 1,2,3. If m=1 then n2(5−n)=0 and n=5. If m=2 then n2(5−n)=62 gives no solution. If m=3 we get n3−5n2−726=(n−11)(n2+6n+66)=0 giving the only solution n=11. Now let k=1. Then by putting n=m2+1 to the main equation we get m(3m3−2m+1)=4. Then m=1 and for m>1 the left hand side exceeds 4. Done. Solutions: (m,n)=(1,5),(3,11).