P19573 [HackerEarth] Its Sparsh(Techno-cultural fest of SVNIT) time and committee of Sparsh is getting ready in making college look clean and green ( :p ). As a part of it, they are decorating departments a
普及
题目描述

Its Sparsh(Techno-cultural fest of SVNIT) time and committee of Sparsh is getting ready in making college look clean and green ( :p ). As a part of it, they are decorating departments and roads of SVNIT with plant pots available in nursery of college.

There are N plant pots available in nursery placed in a straight line. Sparsh committee is planning to take few of these pots to keep in different places all over campus. But as nursery also being favorite place of love birds in college, the committee members do not want the nursery to look empty. So they thought that whatever number of pots they are going to take, they will take no two successive pots.(i.e. if they are taking a pot i from nursery, they will not take i-1 and i+1 pots.)

So given N, calculate how many different set of pots they could select. They need to take at least one pot from nursery.
Input:
First line contains number of test cases T.
Next T lines contain a single integer N each.

Output:
Print answer for each test case modulo 10^9 + 7. For each test case print in a new line.

Constraints:
1 < T < 1000000
2 < N < 1000000

Problem Setter : Vinay Kumar

SAMPLE INPUT
2
3
2

SAMPLE OUTPUT
4
2

输入格式

见题面

输出格式

见题面

样例输入
100 37 5 21 34 39 24 31 18 39 25 18 28 18 25 8 8 23 9 20 7 21 40 4 36 23 5 26 10 24 4 24 12 8 36 5 39 19 27 16 9 4 25 36 21 2 36 29 24 36 8 22 16 40 17 4 22 13 29 32 28 24 7 39 24 2 36 22 12 14 29 12 9 13 39 30 14 26 10 29 22 9 2 29 8 18 32 30 30 13 13 17 36 11 8 19 12 35 32 15 8
样例输出
63245985 12 28656 14930351 165580140 121392 3524577 6764 165580140 196417 6764 832039 6764 196417 54 54 75024 88 17710 33 28656 267914295 7 39088168 75024 12 317810 143 121392 7 121392 376 54 39088168 12 165580140 10945 514228 2583 88 7 196417 39088168 28656 2 39088168 1346268 121392 39088168 54 46367 2583 267914295 4180 7 46367 609 1346268 5702886 832039 121392 33 165580140 121392 2 39088168 46367 376 986 1346268 376 88 609 165580140 2178308 986 317810 143 1346268 46367 88 2 1346268 54 6764 5702886 2178308 2178308 609 609 4180 39088168 232 54 10945 376 24157816 5702886 1596 54