Skip to content

Subashree19/Difference-Series

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Difference series Geeksforgeeks problem https://practice.geeksforgeeks.org/problems/difference-series/0

Given a series of numbers 3,10,21,36 …., and series starting from n=1 , find the pattern and output the nth value of above series.

Input: The first line of the input contains a single integer T denoting the number of test cases. The first line of each test case contains n.

Output: For each test case, output the nth value of above series.

Constraints: 1 ≤ T ≤ 100 1 ≤ n≤ 100

Example: Input:

4 1 2 3 4

Output: 3 10 21 36

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%