Ta có: \(M=3^{2012}-3^{2011}+3^{2010}-3^{2009}\)
\(=\left(3^{2012}+3^{2010}\right)-\left(3^{2011}+3^{2009}\right)\)
\(=3^{2010}\cdot\left(3^2+1\right)-3^{2009}\left(3^2+1\right)\)
\(=\left(3^2+1\right)\cdot\left(3^{2010}-3^{2009}\right)\)
\(=10\cdot3^{2009}\cdot\left(3-1\right)⋮10\)(đpcm)