Showing:
Handle Score
@Ibrahim Nash 5765
@akhayrutdinov 5111
@mb1973 4993
@Quandray 4944
@saiujwal13083 4506
@sanjay05 3762
@marius_valentin_dragoi 3516
@sushant_a 3459
@verma_ji 3341
@KshamaGupta 3318
Find n-th term of series 1, 3, 6, 10, 15, 21
School Accuracy: 63.9% Submissions: 613 Points: 0

Given a number N, find the Nth term in the series 1, 3, 6, 10, 15, 21…

Example 1:

Input :
N = 4
Output:
10
Explanation:
The 4th term of the Series is 10.

Example 2:

Input :
N = 3
Output:
6
Explanation:
The 3rd term of the Series is 6.

You don't need to read input or print anything. Your task is to complete the function findNthTerm() which takes an Integer N as input and returns the answer.

Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)

Constraints:
1 <= N <= 104

### Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

#### My Submissions:

Find n-th term of series 1, 3, 6, 10, 15, 21