#Lutece0682. Don't Cheat Under Bear's Eyes

Don't Cheat Under Bear's Eyes

Migrated from Lutece 682 Don't Cheat Under Bear's Eyes

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

An exam will begin in ten minutes, and bearchild is very, very angry, he finds many students are not sit in the right place!

Before talking anything, we will have a deep look at the classroom. The classroom has nn rows of desks with n ones in each row. And there are exactly n×nn\times n students, one for a desk. Bearchild has already set positions for each student, but they underestimated his ability – They think they can find a way to cheat under bear’s eyes! What a young, simple and naive idea!

So they are forces to move back to their own positions. As the classroom is narrow, they can only move horizontally or vertically, but they can move at the same time without collision. A student needs one step to move for one row, or one column further. Suppose all the students choose the shortest road. They get unhappy when walking, the unhappiness of a student can be valued by the square of the steps he walks, i.e. step×stepstep\times step.

Bearchild wonders, if at first the students chose their positions randomly, what is the expected sum of unhappiness of all the students?

Input

The first line of input contains a number TT, indicating the number of test cases. (T10,000T\leq 10,000)

For each case, there are a single number nn. (1n100,000,0001\leq n\leq 100,000,000)

Output

For each case, output Case #i: first. (ii is the number of the test case, from 11 to TT). If the answer is not a integer, output not integer, otherwise output the answer, mod 10000000071000000007.

Samples

4
1
2
3
4
Case #1: 0
Case #2: 6
Case #3: not integer
Case #4: 130

Resources

11th UESTC Programming Contest Preliminary