Flying Jet
Submissions: 555   Accuracy:

34.62%

  Difficulty: Basic   Marks: 1

The jet's speed is changed after every mile covered on it's runway. It follows a specific pattern for the speed. Starting from 1 it goes like 1, 7, 16, 21, 81, 63, 256 . . .  and so on. Your task is to find out its speed after nth mile.


Input:
The First Line of Input contains T, which denotes the number of test cases. The only line of each test case contains an integer denoting n.

 

Output:
Print the speed of the jet at the nth mile covered before take Off.


Constraints:
1<=T<=100 
1<=N<=60


Example:
Input:

2
5
9
Output:
81
625

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth
Author: saksham seth


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.