Đặt \(g\left(x\right)=f\left(x\right)-x-1\Rightarrow g\left(2\right)=g\left(3\right)=g\left(4\right)=0\)
\(\Rightarrow g\left(x\right)\) có 3 nghiệm 2;3;4
\(\Rightarrow g\left(x\right)=a\left(x-2\right)\left(x-3\right)\left(x-4\right)\)
\(\Rightarrow f\left(x\right)=g\left(x\right)+x+1=a\left(x-2\right)\left(x-3\right)\left(x-4\right)+x+1\)
\(f\left(5\right)=10\Rightarrow a\left(5-2\right)\left(5-3\right)\left(5-4\right)+5+1=10\)
\(\Rightarrow a=\dfrac{2}{3}\)
\(\Rightarrow f\left(x\right)=\dfrac{2}{3}\left(x-2\right)\left(x-3\right)\left(x-4\right)+x+1\)
\(\Rightarrow f\left(6\right)=\dfrac{2}{3}.4.3.2+6+1=...\)