




def    UpperCAmelCase_				( __UpperCAmelCase		:      list[int]				)   ->					float:
      if not nums:  # Makes sure that the list is not empty
            raise ValueError('List is empty'				)

      SCREAMING_SNAKE_CASE_      		=     sum(__UpperCAmelCase				) / len(__UpperCAmelCase				)  # Calculate the average
      return sum(abs(x - average				) for x in nums				) / len(__UpperCAmelCase				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()





def    UpperCAmelCase_				( __UpperCAmelCase		:      int				)   ->					int:
      assert isinstance(__UpperCAmelCase     ,     __UpperCAmelCase				), f"The input value of [n={number}] is not an integer"

      if number == 1:
            return 2
      elif number < 1:
            SCREAMING_SNAKE_CASE_      		=     f"The input value of [n={number}] has to be > 0"
            raise ValueError(__UpperCAmelCase				)
      else:
            SCREAMING_SNAKE_CASE_      		=     sylvester(number - 1				)
            SCREAMING_SNAKE_CASE_      		=     num - 1
            SCREAMING_SNAKE_CASE_      		=     num
            return lower * upper + 1


if __name__ == "__main__":
   print(f'''The 8th number in Sylvester\'s sequence: {sylvester(8)}''')