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