input: Write a python function to perform a complex computation.
  assert complex_computation(2) == 8
  assert complex_computation(3) == 15
  assert complex_computation(5) == 35
output: def complex_computation(n):
      result = 0
      for i in range(1, n+1):
          result += i * 2
      return result