4: \(3x^2+ax+27\)
\(=3x^2+15x+\left(a-15\right)x+5a-75-5a+75+27\)
=(x+5)(3x+a-15)-5a+102
Để dư là 2 thì -5a+102=2
=>-5a=-100
=>a=20
5: \(6x^3+17x^2+15x+2a\)
\(=6x^3+9x^2+3x+8x^2+12x+4+2a-4\)
\(=\left(2x^2+3x+1\right)\left(3x+4\right)+2a-4\)
Để dư là 2 thì 2a-4=2
=>2a=6
=>a=3
6: \(x^2-5x+4a\)
\(=x^2-x-4x+4+4a-4\)
=(x-1)(x-4)+4a-4
Để dư là 4 thì 4a-4=4
=>4a=8
=>a=2


