you are given an integer , You have to determine how many pair of integers (1 \le x,y \le n) such that are x \ | \ y=n where is bitwise OR operation , print the answer modulo 10^9+7.
The first line of each test case contains single integer (1 \le t \le 10^4) — the number of test cases.
The only line of each test case contains single integer (1 \le n \le 10^9) — the integer of the problem.
For each test case , single integer — the answer to the problem.
Example 1
In the second test case , all such pairs are (2,4),(2,6),(4,2),(4,6)(6,2),(6,4)(6,6).
Subtask ( points) : (1 \le \sum n \le 1000)
Subtask ( points) : (1 \le \sum n \le 10^6)
Subtask ( points) : No additional constraints