eolymp
bolt
Try our new interface for solving problems
Problems

Counting Again?

Counting Again?

prb6013 Given an integer n, in how many ways you can tile a 4 × n rectangle with 3 × 1 tiles?

Because the answer can be large, we are interested in the remainder after answer is divided by 1000000007.

Input

First line contains the number of test cases t (1t100). Each test case consist of a single line containing an integer n (1n10000).

Output

For each test case print the the remainder after answer is divided by 1000000007.

Time limit 1 second
Memory limit 64 MiB
Input example #1
2
3
6
Output example #1
3
13
Author Darko Aleksic