12
#include<stdio.h> main(){int n,i;scanf("%i",&n);while(n--){scanf("%i",&i);printf("%d\n",(i+1)*i/2);}}