#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while(t--) { int N; cin >> N; cout << 1ll*N*(N+1) << "\n"; } }