// بسم الله الرحمن الرحيم

#include <bits/stdc++.h>
using namespace std;

template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { for (auto &i : v) os << i << ' '; return os; }
template <typename T> istream &operator>>(istream &is, vector<T> &v) { for (auto &i : v) is >> i; return is; } 
#define endl        '\n'
#define int         long long
#define ull         unsigned long long
#define pii         pair<int, int>
#define vi          vector<int> 
#define all(v)      v.begin(), v.end()
#define allr(v)    v.rbegin(), v.rend()
#define Num_of_Digits(n) ((int(log10(n)) + 1))
mt19937_64 rnd(chrono::steady_clock::now().time_since_epoch().count());
// rnd() -> generates a random number

#define ElgamalyHowaAmaly  ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout << fixed << setprecision(10)

 
void solve1()
{
    int n;  cin >> n;
    if(n % 2 == 0) cout << -1 << endl;
    else {
        for(int i = n; i >= 1; --i) cout << i << ' ' ;
        cout << endl;
    }
}

signed main(){
 
    ElgamalyHowaAmaly;
        
    int t = 1;
    cin >> t;
    for(int test = 1; test <= t; ++test)
    {
        solve1();
    }
    return 0;
}