- 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 0, 11, 28, 51, 79, 115, 156, 203, …In C++

In this problem, we are given a number N. Our task is to create a program to find N-th term of series 0, 11, 28, 51, 79, 115, 156, 203, … In C++.

**Problem Description** − To find the Nth terms of the series −

**0, 11, 28, 51, 79, 115, 156, 203, … N-th term.**

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

**Input** − N = 5

**Output** − 79

## Solution Approach:

The general formula for nth term of the series is −

**T _{n} = 3*(N*N) + 2*N - 5**

## Program to illustrate the working of our solution,

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

## Output:

9th term of the series is 256

- Related Questions & Answers
- Program to find N-th term of series 0, 7, 8, 33, 51, 75, 102, 133...in C++
- Program to find N-th term of series 3 , 5 , 21 , 51 , 95 , … 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 4, 14, 28, 46, 68, 94, 124, 158, …..in C++
- Program to find N-th term of series 2, 12, 28, 50, 77, 112, 152, 198, …in C++
- Program to find N-th term of series 0, 0, 2, 1, 4, 2, 6, 3, 8…in C++
- Program to find N-th term in the given series in C++
- Program to find N-th term of series 0, 2,1, 3, 1, 5, 2, 7, 3...in C++
- Program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...in C++
- C Program for N-th term of Geometric Progression series
- C Program for N-th term of Arithmetic Progression series
- N-th term in the series 1, 11, 55, 239, 991,…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++
- Program to find N-th term of series 1, 3, 12, 60, 360...in C++

Advertisements