#include using namespace std; int T,n; int main(){ scanf("%d",&T); while (T--){ scanf("%d",&n); printf("%lld\n",1ll*n*(n+1)); } }