1776: 数列和2

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

Description

写一个算法求1×2+2×3+3×4+…+n×(n+1)的和,其中n<=100。

Input

一个整数N

Output

数列之和

Sample Input Copy

3

Sample Output Copy

20

Source/Category