Ta có :
\(S=1+2+...+2^9\)
\(\Rightarrow2S=2+2^2+....+2^{10}\)
\(\Rightarrow2S-S=\left(2+2^2+...+2^{10}\right)-\left(1+2+....+2^9\right)\)
\(\Rightarrow S=2^{10}-1\)
S = 1 + 2 + 22 + 23 + 24 + ... + 29
2S = ( 1 + 2 + 22 + 23 + 24 + ... + 29 ) . 2
2S = 2 + 22 + 23 + 24 + 25 + ... + 210
2S - S = ( 2 + 22 + 23 + 24 + 25 + ... + 210 ) - ( 1 + 2 + 22 + 23 + 24 + ... + 29 )
S = 210 - 1
S = 1024 - 1
S = 1023