Different Sums
시간 제한1초메모리 제한256 MB
길이 N인 양의 정수 수열을 만들어, 모든 N(N+1)/2개의 연속 부분합이 서로 다르게 하라. 각 원소는 3(N+6) 이하다.
문제
A subsum of a sequence is a sum of one or more consecutive elements of this sequence.
You are given an integer . Your task is to make a sequence of positive integers which are not greater than such that all its subsums are different from each other.
입력
There are several test cases.
The first line of input contains an integer , the number of test cases ().
Each of the next lines contains an integer , the length of the sequence ().
출력
For each test case, print one line with space-separated positive integers representing your sequence.
If multiple solutions exist, any of them will be accepted.