아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Different Sums

시간 제한1초메모리 제한256 MB

요약
길이 N인 양의 정수 수열을 만들어, 모든 N(N+1)/2개의 연속 부분합이 서로 다르게 하라. 각 원소는 3(N+6) 이하다.
난이도

보통10점 중 7점

유형
수학, 조합론, 그리디, 구현
정답자
아직 제출이 없습니다

문제

A subsum of a sequence is a sum of one or more consecutive elements of this sequence.

You are given an integer NN. Your task is to make a sequence of positive integers which are not greater than 3⋅(N+6)3 \cdot (N + 6) such that all its N⋅(N+1)/2N \cdot (N + 1) / 2 subsums are different from each other.

입력

There are several test cases.

The first line of input contains an integer TT, the number of test cases (1≤T≤2001 \leq T \leq 200).

Each of the next TT lines contains an integer NN, the length of the sequence (1≤N≤20001 \le N \le 2000).

출력

For each test case, print one line with NN space-separated positive integers representing your sequence.

If multiple solutions exist, any of them will be accepted.

예제1

  1. 예제 1

    입력
    2
    2
    5
    
    예상 출력
    1 2
    1 2 4 8 16