def triangular(n):
    """Return the sum of integers from 1 through n."""
    return n * (n + 1) // 2
