- Related Questions & Answers
- Program to find N-th term of series 3, 12, 29, 54, 87, … in C++
- Program to find N-th term of series 1, 3, 12, 60, 360...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 3, 6, 18, 24, … in C++
- C++ program to find n-th term of series 3, 9, 21, 41, 71…
- Program to find N-th term of series 3, 5, 33, 35, 53… in C++
- Program to find N-th term of series 2, 4, 3, 4, 15… 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, 6, 17, 34, 56, 86, 121, 162, …in C++
- C++ program to find n-th term of series 1, 3, 6, 10, 15, 21…
- n-th term in series 2, 12, 36, 80, 150….in C++
- Program to find N-th term of series 2, 12, 28, 50, 77, 112, 152, 198, …in C++
- C++ program to find Nth term of the series 1, 8, 54, 384…
- C++ program to find n-th term in the series 7, 15, 32, …
- C++ program to find n-th term in the series 9, 33, 73,129 …

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this tutorial, we will be discussing a program to find N-th term of series 3, 12, 29, 54, 86, 128, 177, 234, …..

For this we will be provided with a number. Our task is to find the term for the given series at that particular position.

#include <iostream> #include <math.h> using namespace std; //calculating nth term of given series int nthTerm(int n) { return 4 * pow(n, 2) - 3 * n + 2; } int main() { int N = 4; cout << nthTerm(N) << endl; return 0; }

54

Advertisements