When m is an integer, the equations x2-4x + M = 0 and x2-3x - (m-1) = 0 have integer roots

When m is an integer, the equations x2-4x + M = 0 and x2-3x - (m-1) = 0 have integer roots

If two equations have roots at the same time, then △ 1 = 16-4m ≥ 0 and △ 2 = 9 + 4 (m-1) ≥ 0, the solution of - 5 / 4 ≤ m ≤ 4 equation x ^ 2-4x + M = 0 can be transformed into (X-2) ^ 2 + M-4 = 0, then X1 = (root 4-m) + 2, X2 = (root 4-m) + 2. If two are integers, then M = 0 or 2 or 4