This documentation is automatically generated by online-judge-tools/verification-helper
import cp_library.math.series.__header__
def sum_of_naturals(n):
return n * (n + 1) // 2
'''
╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸
https://kobejean.github.io/cp-library
'''
def sum_of_naturals(n):
return n * (n + 1) // 2