Ta có :
\(S=1.2+2.3+...+39.40\)
\(\Rightarrow3S=1.2.3+2.3.3+....+39.40.3\)
\(\Rightarrow3S=1.2.\left(3-0\right)+2.3.\left(4-1\right)+....+39.40.\left(41-38\right)\)
\(\Rightarrow3S=1.2.3-0.1.2+2.3.4-1.2.3+.....+39.40.41-38.39.40\)
\(\Rightarrow3S=39.40.41\)
\(\Rightarrow S=\frac{38.39.40}{3}=21320\)