determine the sum of all the multiples of 4 between 1 and 999
arithmetical sequence: sum=4+8+12+16+20+24+⋯+996
n=9964=249
sum=(a1+an)⋅n2=(4+996)⋅2492=1000⋅2492=500⋅249=124500