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