newton/solutions/python/268B.py

4 lines
50 B
Python
Raw Normal View History

2025-01-17 13:38:29 +00:00
n = int(input())
print(round((n-1)*n*(n+1)/6+n))