CodeTON Round 9 (Div. 1 + Div. 2, Rated, Prizes!)
A
Shohag Loves Mod
Codeforces
800
原题
←B →
翻译中…

Shohag has an integer $n$. Please help him find an increasing integer sequence $1 \le a_1 \lt a_2 \lt \ldots \lt a_n \le 100$ such that $a_i \bmod i \neq a_j \bmod j$ $^{\text{∗}}$ is satisfied over all pairs $1 \le i \lt j \le n$.

翻译中…

It can be shown that such a sequence always exists under the given constraints.

翻译中…

$^{\text{∗}}$$a \bmod b$ denotes the remainder of $a$ after division by $b$. For example, $7 \bmod 3 = 1, 8 \bmod 4 = 0$ and $69 \bmod 10 = 9$.

翻译中…

Input

翻译中…

The first line contains a single integer $t$ ($1 \le t \le 50$) — the number of test cases.

翻译中…

The first and only line of each test case contains an integer $n$ ($2 \le n \le 50$).

翻译中…

Output

翻译中…

For each test case, print $n$ integers — the integer sequence that satisfies the conditions mentioned in the statement. If there are multiple such sequences, output any.

翻译中…

Note

翻译中…

In the first test case, the sequence is increasing, values are from $1$ to $100$ and each pair of indices satisfies the condition mentioned in the statement:

翻译中…
  • For pair $(1, 2)$, $a_1 \bmod 1 = 2 \bmod 1 = 0$, and $a_2 \bmod 2 = 7 \bmod 2 = 1$. So they are different.
  • For pair $(1, 3)$, $a_1 \bmod 1 = 2 \bmod 1 = 0$, and $a_3 \bmod 3 = 8 \bmod 3 = 2$. So they are different.
  • For pair $(2, 3)$, $a_2 \bmod 2 = 7 \bmod 2 = 1$, and $a_3 \bmod 3 = 8 \bmod 3 = 2$. So they are different.
翻译中…

Note that you do not necessarily have to print the exact same sequence, you can print any other sequence as long as it satisfies the necessary conditions.

翻译中…

样例

Input #1
2
3
6
Output #1
2 7 8
2 3 32 35 69 95
InputCopy OutputCopy
题目信息
题号
2039A
时间限制
1 s
内存限制
256 MB
标签
构造
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。