Răspuns :
Răspuns:
folosesti formula n*(n+1)/2 practic ai 77*78/2 as simple as that si raspunsul e 3003
Salut!
Vom folosii suma lui Gauss!
Formula: n(n+1)\2
1 + 2 + 3 + 4 + .... + 76 + 77 <=>
<=> 77 × ( 77 + 1 ) / 2 <=>
<=> 77 × 78 / 2 <=>
<=> 77 × 39 <=>
<=> 3003