\(M=\frac{4x+5}{2x+1}=\frac{4x+2+3}{2x+1}=\frac{2\left(2x+1\right)+3}{2x+1}=\frac{2\left(2x+1\right)}{2x+1}+\frac{3}{2x+1}=2+\frac{3}{2x+1}\)
Để M là số nguyên thì \(\frac{3}{2x+1}\) là số nguyên
=>3 chia hết cho 2x+1
=>2x+1\(\inƯ\left(3\right)\)
=>2x+1\(\in\left\{-3;-1;1;3\right\}\)
=>2x\(\in\left\{-4;-2;0;2\right\}\)
=>x\(\in\left\{-2;-1;0;1\right\}\)