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