For this Question: Given a series of numbers 2, 10, 30, 68, 130.., Identify the pattern in the series and help to identify the integers at other indices. Indices are starting from 1.The input line contains T, denoting the number of test cases. The description of each testcase follows. Each test case contains a single line with 1 integer X (index) .

Constraints:
1 ≤ T ≤ 100
1 ≤ X ≤ 200For each testcase in new line, print number at the Xth index .Input:
4
8 
12
200
145

Output:
520
1740
8000200
3048770, I have written this Solution Code: a=int(input())
for i in range(a):
	z=int(input())
	print(z*z*z+z), In this Programming Language: Python, Now tell me if this Code is compilable or not?