Create a function sum_n that for any given value, say n, computes the sum of the integers from 1 to n (inclusive).

Example

sum_n(100)
#> [1] 5050
sum_n(3000)
#> [1] 4501500