public class Chekk {
static int ans(int n)
{
if(n==0)
return 1;
if(n==1)
return 2;
if(n<0)
return 0;
return ans(n-1)+(n-1);
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while (t>0)
{
int n=sc.nextInt();
System.out.println(ans(n));
t–;
}
}
}