#P7820. Set1
Set1
Set1
Problem Description
You are given a set . It guarantees that n is odd. You have to do the following operations until there is only element in the set: Firstly, delete the smallest element of . Then randomly delete another element from . For each , determine the probability of being left in the . It can be shown that the answers can be represented by , where and are coprime integers, and print the value of
Input
The first line containing the only integer denoting the number of test cases. For each test case: The first line contains a integer . It guarantees that: .
Output
For each test case, you should output integers, -th of them means the probability of being left in the .
Sample Input
1
3
Sample Output
0 499122177 499122177
Source
2020 Multi-University Training Contest 5