`a)` Thay `x=2` vào `B` có: `B=[-10]/[2-4]=5`
`b)` Với `x ne -1;x ne -5` có:
`A=[(x+2)(x+1)-5x-1-(x+5)]/[(x+1)(x+5)]`
`A=[x^2+x+2x+2-5x-1-x-5]/[(x+1)(x+5)]`
`A=[x^2-3x-4]/[(x+1)(x+5)]`
`A=[(x+1)(x-4)]/[(x+1)(x+5)]`
`A=[x-4]/[x+5]`
`c)` Với `x ne -5; x ne -1; x ne 4` có:
`P=A.B=[x-4]/[x+5].[-10]/[x-4]`
`=[-10]/[x+5]`
Để `P` nguyên `<=>[-10]/[x+5] in ZZ`
`=>x+5 in Ư_{-10}`
Mà `Ư_{-10}={+-1;+-2;+-5;+-10}`
`=>x={-4;-6;-3;-7;0;-10;5;-15}` (t/m đk)