21²+22²+23²+.40²
=40×(40+1)×(40×2+1)/6-20×(20+1)×(20×2+1)/6
=40×41×81/6-20×21×41/6
=22140-2780
=19270