#29578: C++紀錄


e3524167 (Kenlogin)


#include <iostream>

#include <string> 

#include <sstream>

 

using namespace std;

int main()

{

int x;

while (cin >> x)

{

cout << (x * (x *x + 5)) / 6 + 1 << endl;

}

}