1+2+3+...+30 = 30*31/2 = 15*31 = 465 ( formula lui gauss 1+2+3+..+n =n(n+1)/2 )
2+3+4+...+30 = 1+2+3+...+30 - 1 = 465-1 = 464
9+10+11+...+30 = 1+2+3+...+30 - 1+2+3+...+8 = 465 - 8*9/2 = 465 - 72/2= 465 - 36 = 429