Bài 5:
a: Thay a=2 vào f(x), ta được:
\(f\left(x\right)=3x^2-2x+2-5=3x^2-2x-3\)
\(\dfrac{f\left(x\right)}{x-4}=\dfrac{3x^2-2x-3}{x-4}\)
\(=\dfrac{3x^2-12x+10x-40+37}{x-4}=3x+10+\dfrac{37}{x-4}\)
b: \(f\left(x\right)⋮x+2024\)
=>\(3x^2-2x+a-5⋮x+2024\)
=>\(3x^2+6072x-6074x-12293776+a-12293781⋮x+2024\)
=>a-12293781=0
=>a=12293781