#includeint gcd(int x,int y){ if(y==0)return x; return gcd(y,x%y);}int main(){ int _case,n,i,j,k; scanf("%d",&_case); while(_case--) { scanf("%d",&n); for(i=n/2; i =n)printf("%d\n",n-1); else { long long mul=1; mul=mul*i/k*(n-i); printf("%I64d\n",mul); } } return 0;}