Easy Function
题号:NC210546
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given an positive integer , we define 
,

You need to calculate .

As the answer may be too large, you need to print the answer module .

输入描述:

The first line of the input gives the numbers of test cases,  test cases follow.

Each test case consists of one line with one integer  as described above.

输出描述:

For each test case, print an integer in one line representing the answer.
示例1

输入

复制
5
1
2
3
4
5

输出

复制
1
2
4
5
7

说明