






"""simple docstring"""


import math



def    lowerCAmelCase							(       __UpperCamelCase					):




  """simple docstring"""







  if not isinstance(__UpperCamelCase						,			__UpperCamelCase					):
    __A		     =					f'Input value of [number={number}] must be an integer'
    raise TypeError(__UpperCamelCase					)
  if number < 1:
    __A		     =					f'Input value of [number={number}] must be a positive integer'
    raise ValueError(__UpperCamelCase					)
  __A		     =					[number]
  while number != 1:
    if number % 2 == 0:
      __A		     =					math.floor(math.sqrt(__UpperCamelCase					)					)
    else:
      __A		     =					math.floor(
          math.sqrt(__UpperCamelCase					) * math.sqrt(__UpperCamelCase					) * math.sqrt(__UpperCamelCase					)					)
    sequence.append(__UpperCamelCase					)
  return sequence


if __name__ == "__main__":
       import doctest

       doctest.testmod()









'''simple docstring'''



import math



def 	__lowerCAmelCase       (				lowerCamelCase :    int       ):






	'''simple docstring'''




	if not isinstance(lowerCamelCase					,		lowerCamelCase       ):
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be an integer'''
		raise TypeError(lowerCamelCase       )
	if number < 1:
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be a positive integer'''
		raise ValueError(lowerCamelCase       )
	__lowerCAmelCase       				=	[number]
	while number != 1:
		if number % 2 == 0:
			__lowerCAmelCase       				=	math.floor(math.sqrt(lowerCamelCase       )       )
		else:
			__lowerCAmelCase       				=	math.floor(
			    math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       )       )
		sequence.append(lowerCamelCase       )
	return sequence


if __name__ == "__main__":
	import doctest

	doctest.testmod()