#ifndef SHO_LOCAL #include #define debug(...) ; #else #include "debug.h" #endif using namespace std; using ll = long long; void solution() { ll n; cin >> n; ll ans = 2 * n; ans += n * (n - 1); cout << ans << '\n'; } int main() { iostream::sync_with_stdio(0), cin.tie(0); int TT; cin >> TT; for (int tc = 1; tc <= TT; tc++) { // cout << "Case #" << tc << ": " << solution() << '\n'; solution(); } return 0; }