`C = (x+4)/(x+1) = (x+1+3)/(x+1) = 1+3/(x+1)`
Để `C in ZZ`
`=> x+1 in Ư(3)=(+-1,+-3)`
`@ x+1 =1 => x =0`
`@ x+1=-1 => x = -2`
`@x+1 =3 => x = 2`
`@x+1 =-3 =>x=-4`
`B = (x-4)/(x+2) = (x+2-6)/(x+2) = 1-6/(x+2)`
Để `B in ZZ`
`=> x+2 in Ư(6) = {+-1,+-2,+-3,+-6)`
`@ x+2 =1 => x = -1`
`@x+2 =-1 => x=-3`
`@ x+2 =2 => x=0`
`@ x+2 =-2 => x=-4`
`@x+2 =3 => x = 1`
`@ x +2 =-3 => x = -5`
`@ x+2 =6 => x=4`
`@x+2 =-6 => x= -8`