hdu1290
/**/
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cctype>
#include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include <string>
#include <stack>
#include <queue>
typedef long long LL;
using namespace std;
int n;
int a[1005];
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
int n;
while(scanf("%d", &n) == 1){
printf("%d\n", (n * n * n + 5 * n + 6) / 6);
}
return 0;
}
/**/
三维:an^3+bn^2+cn+d即为答案,把n=0,1,2,3带入可求