Problem V: 金字塔

Problem V: 金字塔

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

金字塔由n层石块垒成。

从塔底向上,每层依次需要 n * n,(n-1)*(n-1),... ... 2*2,1*1块石块。

请问搭建金字塔总共需要多少块石块?

提示

例如n是2

2*2=4

(2-1)*(2-1)=1

4+1=5

Sample Input Copy

2

Sample Output Copy

5