- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

To find the sum of the given series, we will analyze the series and try to get some traits that show it is known series or at least is a combination of 2 - 3 series. the given series is 5, 12, 23, 38…

We have to find the sum of the series for any value of n

**For example**

For n = 3 Sum = 40.

On analyzing the given series, you will find that this series is Quadratic series. In quadratic series, the difference of the numbers is in an arithmetic progression( increase by definite number)

So we can directly use the formula for the sum of a quadratic series. the formula for the sum of the series is:

Sum = (2*(n*(n+1)*(2*(n+1))/6))+n*(n+1)/2+2*n

#include <stdio.h> int main() { int n = 6; int sum = (2*(n*(n+1)*(2*n+1)/6)+(n*(n+1)/2)+(2*n)); printf("the sum of series till %d is %d", n,sum); return 0; }

the sum of series till 6 is 215

- Related Questions & Answers
- Sum of the first N terms of the series 2,10, 30, 68,…. in C programming
- C++ Program to find the sum of the series 23+ 45+ 75+….. upto N terms
- Sum of the first N terms of the series 2, 6, 12, 20, 30…. in c programming
- C Programming for sum of the series 0.6, 0.06, 0.006, 0.0006, …to n terms
- Sum of the series 0.7, 0.77, 0.777 … upto n terms in C++
- Print first N terms of series (0.25, 0.5, 0.75, …) in fraction representation
- Sum of the series 1.2.3 + 2.3.+ … + n(n+1)(n+2) in C
- Sum of series 2/3 – 4/5 + 6/7 – 8/9 + …… upto n terms
- Program to find N-th term of series 9, 23, 45, 75, 113… in C++
- C++ program to find the sum of the series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!
- Sum of the series 1 / 1 + (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + … + upto n terms in C++
- Sum of the series 3, 20, 63, 144, … in C++
- C++ Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! + …… n/n!
- C Programming for Sum of sequence 2, 22, 222, ………
- C++ program to find the sum of the series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n

Advertisements