- 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

# C++ Program to find the sum of the series 23+ 45+ 75+….. upto N terms

In this tutorial, we will be discussing a program to find the sum of the given series 23+ 45+ 75+….. upto N terms.

For this, we will be given with the value of N and our task is to add up every term starting from the first one to find the sum of the given series.

After solving this, we get the formula for the sum of the series;

**Sn = (2n(n+1)(4n+17)+54n)/6**

## Example

#include <iostream> using namespace std; //calculating the sum of the series int calc_sum(int N) { int i; int sum = (2 * N * (N + 1) * (4 * N + 17) + 54 * N) / 6; return sum; } int main() { int N = 7; int res = calc_sum(N); cout << res << endl; return 0; }

## Output

903

- Related Questions & Answers
- Find sum of the series ?3 + ?12 +.... upto N terms in C++
- Find sum of the series 1+22+333+4444+... upto n terms in C++
- Sum of the series 0.7, 0.77, 0.777 … upto n terms in C++
- Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ... upto n terms in C++
- Sum of series 2/3 – 4/5 + 6/7 – 8/9 + …… upto n terms
- Sum of the series 1 / 1 + (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + … + upto n terms in C++
- Sum of the first N terms of the series 2,10, 30, 68,…. in C programming
- Sum of the first N terms of the series 5,12, 23, 38…. in C Programming
- C Programming for sum of the series 0.6, 0.06, 0.006, 0.0006, …to n terms
- Find fibonacci series upto n using lambda in Python
- 8085 program to find the sum of a series
- Python program to find the sum of sine series
- Sum of the first N terms of the series 2, 6, 12, 20, 30…. in c programming
- C/C++ Program to Find the sum of Series with the n-th term as n^2 – (n-1)^2
- C program to find the sum of arithmetic progression series

Advertisements