Ta có : \(x=2022\Rightarrow x-1=2021\)
hay \(B=x^{10}-\left(x-1\right)x^9-\left(x-1\right)x^8-...-\left(x-1\right)x^2-\left(x-1\right)x+5\)
\(=x^{10}-x^{10}+x^9-x^9+x^8-...-x^3+x^2-x^2+x+5\)
\(=x+5\Rightarrow B=2022+5=2027\)
Vậy với x = 2022 thì B = 2027