1847: 【CSP函数递归】数列求和▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

有一数列如下: lns="http://www.w3.org/1998/Math/MathML">1 lns="http://www.w3.org/1998/Math/MathML">2 lns="http://www.w3.org/1998/Math/MathML">4 lns="http://www.w3.org/1998/Math/MathML">7 lns="http://www.w3.org/1998/Math/MathML">11 lns="http://www.w3.org/1998/Math/MathML">16 lns="http://www.w3.org/1998/Math/MathML">22 lns="http://www.w3.org/1998/Math/MathML"> 试求该数列前 lns="http://www.w3.org/1998/Math/MathML">N 项之和。

Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">N  lns="http://www.w3.org/1998/Math/MathML">0<N<1000 )。

Output

一个整数。

Sample Input Copy

3

Sample Output Copy

7