Do \(\left(a+b\right)^2=a^2+2ab+b^2\)nên \(a^2+b^2=\left(a+b\right)^2-2ab=9^2-2.20=41\)
Ta có: \(\left(a-b\right)^2=a^2-2ab+b^2=41-2.20=1\Rightarrow a-b=1\)hoặc \(a-b=-1\)
Với \(a-b=1\) thì \(\left(a-b\right)^{2015}=1^{2015}=1\)
Với \(a-b=-1\) thì \(\left(a-b\right)^{2015}=\left(-1\right)^{2015}=-1\)