Vì đề con viết thiếu nên cô đã sửa nhé.
Ta có \(S=1-2+2^2-2^3+...-2^{2017}\)
\(\Rightarrow4S=2^2.S=2^2\left(1-2+2^2-2^3+...-2^{2017}\right)\)
\(\Rightarrow4S=2^2-2^3+2^4-2^5+...-2^{2017}+2^{2018}-2^{2019}\)
\(\Rightarrow4S=S+1+2^{2018}-2^{2019}\)
\(\Rightarrow3S=1+2^{2018}-2^{2019}\)
\(\Rightarrow M=3S-2^{2018}=1-2^{2019}\)