1 #include <stdio.h>
2 #include <iostream>
3 #include <cmath>
4 #include <algorithm>
5 #include <cstring>
6
7 using namespace std;
8
9 int main()
10 {
11 // freopen("ACM.txt","r",stdin);
12 int t,n;
13 cin>>t;
14 while(t--)
15 {
16 int ans=0;
17 cin>>n;
18 int x=n/2;
19 for(int i=1;i<=x;i++)
20 {
21 ans+=x-i;
22 }
23 for(int i=x+1;i<=n;i++)
24 {
25 ans+=n-i;
26 }
27 cout<<ans<<endl;
28 }
29 }