newton/solutions/python/268B.py

3 lines
50 B
Python

n = int(input())
print(round((n-1)*n*(n+1)/6+n))