Đặt \(A=1+2+2^2+2^3+...+2^{2012}\)
Có \(2A=2+2^2+2^3+2^4+...+2^{2013}\)
\(2A-A=\left(2+2^2+2^3+2^4+...+2^{2013}\right)-\left(1+2+2^2+2^3+...+2^{2012}\right)\)
\(A=2^{2013}-1\)
Vậy \(M=\frac{2^{2013}-1}{2.\left(2^{2012}-1\right)}=\frac{1}{2}\)
\(M=\frac{1}{2}\)