input: Write a function to calculate the sum of the first n even numbers.
  assert sum_even_numbers(5) == 30
  assert sum_even_numbers(3) == 12
  assert sum_even_numbers(1) == 2
output: def sum_even_numbers(n):
      return sum(2 * i for i in range(1, n + 1))