Solution:
First consider when n≥m, so let n=m+d where d≥0. Then we have
2m(m+d−2dm)=2m(m(1−2d)+d)
which is non-positive unless m=0. So our first set of solutions is m=0,n=2j.
Now, we can assume that m>n, so let m=n+d where d>0. Rewrite
2mn−2nm=2n+dn−2n(n+d)=2n((2d−1)n−d)
In order for this to be a power of 2, (2d−1)n−d must be a power of 2. This implies that for some j, 2j≡−d(mod2d−1). But notice that the powers of 2 modulo 2d−1 are 1,2,4,…,2d−1 (since 2d≡1 so the cycle repeats).
In order for the residues to match, we need 2j+d=c(2d−1), where 0≤j≤d−1 and c≥1. In order for this to be true, we must have 2d−1+d≥2d−1⟺d+1≥2d−1. This inequality is only true for d=1,2,3. We plug each of these into the original expression (2d−1)n−d.
For d=1: n−1 is a power of 2. This yields the set of solutions (2j+2,2j+1) for j≥0.
For d=2: 3n−2 is a power of 2. Note that powers of 2 are −2(mod3) if and only if it is an even power, so n=322j+2. This yields the solution set (322j+8,322j+2), j≥0.
For d=3: 7n−3 is a power of 2. Powers of 2 have a period of 3 when taken (mod7), so inspection tells us 7n−3=23j+2, yielding the solution set (723j+2+24,723j+2+3), j≥0.
Therefore, all the solutions are of the form
(m,n)=(0,2j), (2j+2,2j+1)(322j+8,322j+2), (723j+2+24,723j+2+3)
for j≥0.
Restricting this family to m,n≤100 gives 7+7+5+3=22.