Ceiling Sum#13038

Ceiling Sum

1 second
256 megabytes
Medium

Given two integers and , construct Any array of length consisting of positive integers such that:

\sum_{i=1}^{n-1} \sum_{j=i+1}^n \left \lceil \frac{a_i}{a_j} \right \rceil=k

Input

The first line contains single integer (1 \le t \le 10^4) — the number of test cases.

The only line of each test case contains two integers (1 \le n \le 10^6; 1\le k \le 10^{12}) — the length of and desired sum.

It's always guaranteed that an array exists under the set of test

It's guaranteed that \sum n \le 10^6 overall tests.

Output

Print the array : a_1,a_2,\ldots,a_n where (1 \le a_1,a_2,\ldots,a_n \le 10^9).

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points) : (\frac{k}{n} \leq 10).

  2. Subtask ( points) : A solution with (1 \le a_i \le 2) exists.

  3. Subtask ( points) : No additional constraints.