\(S=1.2+2.3+3.4+...+38.39+39.40\)
\(\Rightarrow3S=1.2.3+2.3.3+3.4.3+...+38.39.3+39.40.3\)
\(\Rightarrow3S=1.2.3+2.3.\left(4-1\right)+3.4.\left(5-2\right)+...+38.39.\left(40-37\right)+39.40.\left(41-38\right)\)
\(\Rightarrow3S=1.2.3+2.3.4-1.2.3+3.4.5-2.3.4+...+39.40.41-38.39.40\)
\(\Rightarrow3S=39.40.41\)
\(\Rightarrow3S=63960\)
\(\Rightarrow S=63960\div3=21320\)
Vậy S = 21320