#include using namespace std; long long t, n; int main(){ cin >> t; while(t--){ cin >> n; cout << (1 + n) * n << '\n'; } return 0; }