Given the series as follows 2 2 4 8 16 512....... Identify the nth term of the series. Answers can be very large use BigInt in Java.
First line consists of Q queries. Each of the next Q lines contain a number N which represents the Nth term of the series.
Output the Nth term of the series.
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.