- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures

- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces

# C++ program to find n-th term of series 2, 10, 30, 68, 130 â€¦

In this problem, we are given an integer N. The task is to find the n-th term in series 2, 10, 30, 68, 130...

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

## Input

N = 7

## Output

350

## Explanation

The series is 2, 10, 30, 68, 130, 222, 350...

## Solution Approach

A simple solution to the problem is by finding the general term of the series. Here, the Nth term of the series is N^3 + N. This is found by subtracting the current element with the current index.

For i, i = 1, T(1) = 2 = 1 + 1 = 1^3 + 1 i = 2, T(1) = 10 = 8 + 2 = 2^3 + 2 i = 3, T(1) = 30 = 27 + 3 = 3^3 + 2

**Program to illustrate the working of our solution,**

## Example

#include <iostream> using namespace std; int findNthTerm(int N) { return ((N*N*N) + N); } int main() { int N = 8; cout<<"The "<<N<<"th term of the series is "<<findNthTerm(N); return 0; }

## Output

The 8th term of the series is 520

- Related Articles
- Program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...in C++
- Program to find N-th term of series 4, 14, 28, 46, 68, 94, 124, 158, â€¦..in C++
- C++ program to find n-th term of series 1, 3, 6, 10, 15, 21â€¦
- C/C++ Program to Find the sum of Series with the n-th term as n^2 â€“ (n-1)^2
- 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++
- Java Program to Find sum of Series with n-th term as n^2 â€“ (n-1)^2
- C/C++ Program to Find sum of Series with n-th term as n power of 2 - (n-1) power of 2
- Program to find N-th term in the given series in C++
- Find sum of Series with n-th term as n^2 - (n-1)^2 in C++
- C Program for N-th term of Geometric Progression series
- C Program for N-th term of Arithmetic Progression series
- C++ program to find n-th term of series 3, 9, 21, 41, 71â€¦
- Program to find N-th term of series 3, 6, 18, 24, â€¦ in C++
- Python Program for Find sum of Series with the n-th term as n^2 â€“ (n-1)^2

Advertisements