#include using namespace std; using ll = long long; int main() { int t; cin >> t; ll n; for(int test = 0; test < t; test++) { cin >> n; cout << n * (n + 1) << endl; } return 0; }