input: Write a function that calculates the n-th rectangular number.
  assert rectangular_number(4) == 20
  assert rectangular_number(5) == 30
  assert rectangular_number(6) == 42
output: def rectangular_number(n):
      return n * (n + 1) // 2 * 2