Given that M is a positive integer, find the value of m that makes the solution of the equation MX = 3-x about x a positive integer

Given that M is a positive integer, find the value of m that makes the solution of the equation MX = 3-x about x a positive integer

The original equation is arranged as follows
MX+X=3
(M+1)X=3
X=3/(M+1)
Because x is a positive integer, so (M + 1) must be a positive integer and must be a divisor of 3 in order to be divisible. However, 3 is a prime number whose divisor is only 1 and itself
M + 1 = 1, M = 0, x = 3,
M + 1 = 3, M = 2, x = 1;
Since m is a positive integer, M = 2