#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tc;
  cin >> tc;
  while (tc--) {
    long long n;
    cin >> n;
    long long a = 1, b = n;
    while (a < b) {
      cout << a << " " << b << " ";
      a++;
      b--;
    }
    if (n % 2 == 1) {
      cout << a;
    }
    cout << "\n";
  }
  return 0;
}
