Đặt \(A=2^{2009}+2^{2008}+2^{2007}+...+2+1\\ \Rightarrow2A=2^{2010}+2^{2009}+2^{2008}+...+2^2+2\\ \Rightarrow2A-A=\left(2^{2010}+2^{2009}+2^{2008}+...+2^2+2\right)-\left(2^{2009}+2^{2008}+2^{2007}+...+2+1\right)\\ \Rightarrow A=2^{2010}-1\)
\(\Rightarrow M=2^{2010}-2^{2010}+1=1\)