#include using namespace std; int main(){ int T; cin >> T; for (int i = 0; i < T; i++){ int N; cin >> N; cout << (long long) N * (N + 1) << endl; } }