n(n+1)/2
5050
Chat with our AI personalities
101
The sum of the integers from 1 to 100 can be calculated using the formula for the sum of an arithmetic series: ( S_n = \frac{n(n + 1)}{2} ), where ( n ) is the last integer in the series. Here, ( n = 100 ), so the sum is ( S_{100} = \frac{100(100 + 1)}{2} = \frac{100 \times 101}{2} = 5050 ). Therefore, the sum of the integers from 1 to 100 is 5050.
It is 100*(100+1)/2 = 50500.
It is 2500.
SUM = 0: FOR N = 1 to 100: SUM = SUM + N: Next N: PRINT CHR$(11); "Sum ="; SUM: END