\(\Rightarrow3S=1.2.3+2.3.3+3.4.3+......+39.40.3\)\(.3\)
\(\Rightarrow3S=1.2.3+2.3.\left(4-1\right)+...+39.40.\left(41-38\right)\)
\(\Rightarrow3S=1.2.3+2.3.4-1.2.3+.....+39.40.41-38.39.40\)
\(\Rightarrow3S=39.40.41\)
\(\Rightarrow S=\frac{39.40.41}{3}\)
\(\Rightarrow S=21320\)