#arc163c. [arc163_c]Harmonic Mean
[arc163_c]Harmonic Mean
Problem Statement
Determine whether there is a length- sequence of positive integers that satisfies all of the following conditions, and if it exists, construct one.
- All elements of are distinct.
You are given test cases. Find the answer for each of them.
Constraints
Input
The input is given from Standard Input in the following format:
Here, is the -th test case. Each test case is given in the following format:
Output
For each case, if there is not a sequence of positive integers that satisfies the conditions, print No
. If there is, print one in the following format:
Yes
If there are multiple valid solutions, any of them will be accepted.
Sample Input 1
2
3
5
Sample Output 1
Yes
2 3 6
Yes
3 4 5 6 20
In the first test case, .
is valid because and it satisfies all other conditions.
In the second test case, .
is valid because $\\frac{1}{3} + \\frac{1}{4} + \\frac{1}{5} + \\frac{1}{6} + \\frac{1}{20} = 1$ and it satisfies all other conditions.
Note that, for example, satisfies the first and third conditions, but it is invalid because it contains duplicated elements.