https://www.acmicpc.net/problem/1834
n=int(input()) num=0; for i in range(1,n): num+=i*n+i print(num)