#P1981D. Turtle and Multiplication
Turtle and Multiplication
Description
Turtle just learned how to multiply two integers in his math class, and he was very excited.
Then Piggy gave him an integer , and asked him to construct a sequence consisting of integers which satisfied the following conditions:
- For all , .
- For all , .
Of all such sequences, Piggy asked Turtle to find the one with the minimum number of distinct elements.
Turtle definitely could not solve the problem, so please help him!
Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The first line of each test case contains a single integer () — the length of the sequence .
It is guaranteed that the sum of over all test cases does not exceed .
For each test case, output integers — the elements of the sequence .
If there are multiple answers, print any of them.
Input
Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The first line of each test case contains a single integer () — the length of the sequence .
It is guaranteed that the sum of over all test cases does not exceed .
Output
For each test case, output integers — the elements of the sequence .
If there are multiple answers, print any of them.
Note
In the third test case, violates the second condition since . satisfy the conditions but its number of distinct elements isn't minimum.