Problem Statement
What is the sum of first 50 natural numbers?
Explanation
The sum of first n natural numbers is given by the formula n times n plus 1 divided by 2. Here n equals 50.
Calculation: Sum equals 50 times 51 divided by 2 equals 2550 divided by 2 equals 1275. This formula is derived from the arithmetic progression where first term a equals 1, last term l equals n, and number of terms equals n. The sum equals n times a plus l divided by 2 equals n times 1 plus n divided by 2 equals n times n plus 1 divided by 2.
Code Solution
SolutionRead Only
// Formula: Sum = n(n+1)/2 // For n = 50: // Sum = 50 × 51 / 2 // Sum = 2550 / 2 // Sum = 1275 // Verification: // 1+2+3+...+50 = 1275 // Alternative: Using AP formula // Sum = n/2 × (first term + last term) // Sum = 50/2 × (1 + 50) // Sum = 25 × 51 = 1275
Practice Sets
This question appears in the following practice sets:
