\(\text{Ta có : }a-b=7\\ \Rightarrow\left(a-b\right)^2=7^2\\ \Rightarrow a^2-2ab+b^2=49\\ \Rightarrow a^2+b^2=49+2ab\\ Thay\text{ }ab=-12\text{ }vào,\text{ }ta\text{ }được\text{ }:\\ a^2+b^2=49+2\cdot\left(-12\right)\\ \Rightarrow a^2+b^2=25\\ \Rightarrow a^2+b^2+2ab=25+2\cdot\left(-12\right)\\ \text{ }\Rightarrow\left(a+b\right)^2=1\text{ }\text{ }\text{ }\left(\text{*}\right)\\ Ta\text{ }lại\text{ }có\text{ }:\text{ }B=\left(a+b\right)^{2016}\\ \Rightarrow B=\left(\left(a+b\right)^2\right)^{1008}\\ Kết\text{ }hợp\text{ }với\text{ }\left(\text{*}\right)\text{ }suy\text{ }ra:\text{ }B=1^{1008}=1\\ Vậy\text{ }B=1\text{ }tại\text{ }a-b=7;ab=-12\)
\(\)