#include using namespace std ; typedef long long ll ; typedef unsigned long long ull ; typedef pair < int , int > pii ; typedef vector < int > vi ; #define fi first #define se second mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count()); #define rep(i, a, b) for(int i = a; i < (b); ++i) #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() void solve ( ) { ll n ; cin >> n ; if ( ( n % 2 ) == 1 ) { cout << "0\n" ; return ; } cout << n * ( n - ( n / 2 ) - 1 ) << "\n" ; } int main ( ) { ios_base :: sync_with_stdio ( false ) ; cin.tie ( NULL ) ; int t = 1 ; cin >> t ; while ( t -- ) { solve ( ) ; } return 0 ; }