S=1+3+3^2+....+3^18+3^19
3S=3+3^2+3^3+...+3^19+3^20
3S-S=3+3^2+3^3+...+3^19+3^20-1-3-3^2-...-3^18-3^19
2S=3^20-1
S=(3^20-1):2
ta có
3S=3+32+33+..........................+319+320
3S-S=320-1
2S=320-1
S=320-1/2
<=> 3S = 3.( 1 + 3 + 32 + .. + 318 + 319 )
<=> 3S = 3 + 32 + 33 + 34 + ... + 319 + 320
=> 3S - S = 2S <=> ( 3 + 32 + 33 + 34 + ... +319 + 320 ) - ( 1 + 3 + 32 + 33 + ... + 318 + 319)
=> 2S = 320 - 1
=> S = ( 320 - 1 ) : 2
Vậy S = ( 320 - 1 ) : 2