21+(31+32)+(41+42+43)+.+(401+402+.+4038+4039)
=1/2+2/2+3/2+4/2+5/2+5/2+...+39/2
=(1+2+3+...+39)/2
=[(1+39)*39/2]/2
=390.