- 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

# Program to find N-th term of series 9, 23, 45, 75, 113… in C++

In this problem, we are given an integer n that denotes the nth term of the series. Our task is to create a program to find N-th term of series 9, 23, 45, 75, 113… in C++.

**Problem Description** − Here, we need to find the nth term of the series for which we will be finding the general term of the series.

The series is 9, 23, 45, 75, 113, 159, 213, …

**Let’s take an example to understand the problem,**

**Input** − n = 5

**output** − 159

## Solution Approach,

The general term of the given series is

Nth term = ( ((2*N + 3)^2) - 2*N)

## Example

#include <iostream> using namespace std; int calcNTerm(int N) { int nthTerm = ( (2*N + 3)*(2*N + 3) - (2*N) ); return nthTerm; } int main() { int n = 6; cout<<"Nth term of the series is "<<calcNTerm(n); return 0; }

## Output:

Nth term of the series is 213

- Related Questions & Answers
- C++ Program to find the sum of the series 23+ 45+ 75+….. upto N terms
- C++ program to find n-th term in the series 9, 33, 73,129 …
- C++ program to find n-th term of series 3, 9, 21, 41, 71…
- Find the Nth term of the series 9, 45, 243,1377…in C++
- Program to find N-th term of series 0, 9, 22, 39, 60, 85, 114, 147, …in C++
- Program to find N-th term of series 3, 6, 18, 24, … in C++
- C++ program to find n-th term in the series 7, 15, 32, …
- Program to find N-th term of series 1 4 15 24 45 60 92... in C++
- C++ program to find n-th term of series 2, 10, 30, 68, 130 …
- Program to find N-th term of series 7, 21, 49, 91, 147, 217, …… in C++
- n-th term of series 1, 17, 98, 354…… in C++
- Program to find N-th term of series a, b, b, c, c, c…in C++
- Program to find N-th term of series 3, 5, 33, 35, 53… in C++
- Program to find N-th term of series 1, 2, 11, 12, 21… in C++
- Program to find N-th term of series 2, 4, 3, 4, 15… in C++

Advertisements