Răspuns :
S = ( 11 + 12 + ..+58 ) - 1-2-3-4-5-6-7-8-9-10.
S = (58 x 59 )/2 - ( 1+2+3+4+5+6+7+8+9+10)
S = 29 x 59 - 10 x 11/2
S = 1711 - 110/2 = 1711 - 55 = 1656
S = (58 x 59 )/2 - ( 1+2+3+4+5+6+7+8+9+10)
S = 29 x 59 - 10 x 11/2
S = 1711 - 110/2 = 1711 - 55 = 1656
Facem suma numerelor de la 1 la 58.
S1=58*59/2=1711 (Suma Gauss)
Acum facem suma numerelor de la 1 la 10.
S2=10*11/2=55
Scadem din S1 pe S2:
S=S1-S2=1711-55=1656
S1=58*59/2=1711 (Suma Gauss)
Acum facem suma numerelor de la 1 la 10.
S2=10*11/2=55
Scadem din S1 pe S2:
S=S1-S2=1711-55=1656