#include int main () { int t = 0; int res = 0; res = scanf("%d", &t); while (t > 0) { long long n = 0LL; res = scanf("%lld", &n); printf("%lld\n", n*(n+1LL)); t--; } return 0; }