- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

- 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 Nth term of the series 1, 8, 54, 384…

In this problem, we are given an integer N. Our task is to create a program to Find Nth term of series 1,8, 54, 384 ...

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

## Input

N = 4

## Output

384

## Explanation

4^{th} term − (4 * 4 * (4!) = 384

## Solution Approach

A simple approach to solve the problem is by using the general formula for the nth term of the series. The formula for,

Nth term = ( N * N * (N !) )

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

## Example

#include <iostream> using namespace std; int calcFact(int N) { int fact = 1; for (int i = 1; i <= N; i++) fact = fact * i; return fact; } int calcNthTerm(int N) { return ( N*N*(calcFact(N)) ); } int main() { int N = 5; cout<<N<<"th term of the series is "<<calcNthTerm(N); return 0; }

## Output

5th term of the series is 3000

- Related Articles
- C++ program to Find Nth term of the series 1, 1, 2, 6, 24…
- C++ program to find Nth term of the series 1, 5, 32, 288 …
- C++ program to find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 …
- C++ program to find Nth term of the series 1, 6, 18, 40, 75, ….
- C++ program to find Nth term of the series 0, 2, 4, 8, 12, 18…
- C++ program to find Nth term of series 1, 4, 15, 72, 420…
- C++ program to find Nth term of the series 3, 14, 39, 84…
- C++ program to find nth term of the series 5, 2, 13 41,...
- Find the nth term of the series 0, 8, 64, 216, 512,... in C++
- C++ program to find Nth term of the series 5, 13, 25, 41, 61…
- Find the nth term of the given series 0, 0, 2, 1, 4, 2, 6, 3, 8, 4… in C++
- Program to find N-th term of series 3, 12, 29, 54, 87, … in C++
- C++ program to find Nth number of the series 1, 6, 15, 28, 45, …..
- C++ program to get the Sum of series: 1 – x^2/2! + x^4/4! -…. upto nth term
- Find the Nth term of the series 9, 45, 243,1377…in C++

Advertisements