G2.1 If $R=1 \times 2+2 \times 2^{2}+3 \times 2^{3}+\ldots+10 \times 2^{10}$, find the value of $R$. Similar question: 2005 HI7 If $M=\sum_{n=1}^{1024}\left[\log _{2} n\right]$, find the value of $M$.