Let n,m>1. φ(m)=2m0⋅m1, φ(n)=2n0⋅n1 (m0,n0≥0, m1,n1-odd natural numbers.) Assume that m0≥n0 and let n be the least number such that n∣2k−1.
Set k=2k0⋅k1, where (k0 is nonnegative whole number, k1 is odd natural number). Since n is divisor of odd number, n is odd too.
Now by Euler's theorem n∣2φ(n)−1 and k∣φ(n)⇒k0=n0. (1)
Combining it with given condition we get n∣(2φ(m)−1)(2φ(m)+1)=22φ(m)−1 and k∣2φ(m). Since n∤2φ(m)−1, from where follows k∤φ(m).
From k∣2φ(m) and k∤φ(m) it follows k0=m0+1. By (1) we get
n0≥m0+1 but it contradicts to m0≤n0.
Since the case that n0>m0 leads also to contradiction, we conclude that
m=1 or n=1.
If m=1 then n∣3⇒n=3 or n=1.
Consequently we get 3 solutions: (m,n)=(1,1),(1,3),(3,1).
If n=1 then (m,n)=(3,1),(1,1). Finally, we conclude that there are
only 3 solutions (m,n)=(1,1),(1,3),(3,1).