





"""simple docstring"""
def      __lowerCamelCase   (							a_     :		int							)			->      int:
      assert isinstance(a_ ,   a_							), f'''The input value of [n={number}] is not an integer'''

      if number == 1:
            return 2
      elif number < 1:
            __SCREAMING_SNAKE_CASE   :str						=  f'''The input value of [n={number}] has to be > 0'''
            raise ValueError(a_							)
      else:
            __SCREAMING_SNAKE_CASE   :Any						=  sylvester(number - 1							)
            __SCREAMING_SNAKE_CASE   :List[Any]						=  num - 1
            __SCREAMING_SNAKE_CASE   :int						=  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()