Ta có:
\(S=1-\frac{1}{2}+\frac{1}{3}-\frac{1}{4}+...-\frac{1}{2014}+\frac{1}{2015}=\left(1+\frac{1}{3}+\frac{1}{5}+...+\frac{1}{2015}\right)-\left(\frac{1}{2}+\frac{1}{4}+...+\frac{1}{2014}\right)\)
\(=\left(1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2014}+\frac{1}{2015}\right)-2\left(\frac{1}{2}+\frac{1}{4}+...+\frac{1}{2014}\right)\)
\(=\left(1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{2015}\right)-\left(1+\frac{1}{2}+...+\frac{1}{1007}\right)=\frac{1}{1008}+\frac{1}{1009}+....+\frac{1}{2015}\)
Mà \(P=\frac{1}{1008}+\frac{1}{1009}+...+\frac{1}{2015}\)
\(\Leftrightarrow S-P=0\) \(\Rightarrow\left(S-P\right)^{2016}=0\)