


'''simple docstring'''

def 							__magic_name__(  lowerCamelCase):
						assert isinstance(a_, a_), F"""The input value of [n={number}] is not an integer"""

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


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








"""simple docstring"""
def      __lowerCamelCase   (							a_     :		int							)			->      bool:
      if not isinstance(a_ ,   a_							):
            __SCREAMING_SNAKE_CASE   :int						=  f'''Input value of [number={number}] must be an integer'''
            raise TypeError(a_							)
      if number < 0:
            return False
      __SCREAMING_SNAKE_CASE   :Any						=  number * number
      while number > 0:
            if number % 10 != number_square % 10:
                  return False
            number //= 10
            number_square //= 10
      return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()