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