What is the sum of integers from 1 to 50?
What is the sum of integers from 1 to 50?
Approach: n(n+1)/2.
1275. 50 * 51 / 2 = 25 * 51 = 1275.
Follow-up: What is the sum from 1 to 100?
Key concepts: arithmetic series.
What is the sum of integers from 1 to 50?
Approach: n(n+1)/2.
1275. 50 * 51 / 2 = 25 * 51 = 1275.
Follow-up: What is the sum from 1 to 100?
Key concepts: arithmetic series.