#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>

using namespace std;

int main()
{
    int n;
    while(cin >> n && n) cout << n*(n-1)/2+n+1 << endl;
}