S = 1 x 2 + 2 x 3 + 3 x 4 + ... + 38 x 39 + 39 x 40
3S = 1 x 2 x 3 + 2 x 3 x 3 + 3 x 4 x 3 + ... + 38 x 39 x 3 + 39 x 40 x 3
3S = 1 x 2 x 3 + 2 x 3 x ( 4 - 1 ) + 3 x 4 x ( 5 - 2 ) + ... + 38 x 39 x ( 40 - 37 ) + 39 x 40 x ( 41 - 38 )
3S = 1 x 2 x 3 + 2 x 3 x 4 - 1 x 2 x 3 + 3 x 4 x 5 - 2 x 3 x 4 + ... + 38 x 39 x 40 - 37 x 38 x 39 + 39 x 40 x 41 - 38 x 39 x 40
S = 39 x 40 x 41 : 3
S = 21320
S=1x2+2x3+3x4+...+38x39+39x40
3S=(1x2+2x3+3x4+...+38x39+39x40)x3
3S=1x2x3+2x3x3+3x4x3+....+39x40x3
3S=1x2x3+2x3x(4-1)+3x4x(5-2)+...+39x40x(41-38)
3S=1x2x3+2x3x4-1x2x3+3x4x5-2x3x4+...+39x40x41-38x39x40
3S=39x40x41
3S=63960
S=63960:3
S=21320