
'''simple docstring'''





from doctest import testmod
from math import sqrt
def 	snake_case_							(				_a  :				int      ):
      snake_case_    							=				[]
      if num < 1:
            return facs
      facs.append(1      )
      if num == 1:
            return facs
      facs.append(_a      )
      for i in range(2			,       int(sqrt(_a      )      ) + 1      ):
            if num % i == 0:  # If i is a factor of num
                  facs.append(_a      )
                  snake_case_    							=				num // i  # num//i is the other factor of num
                  if d != i:  # If d and i are distinct
                        facs.append(_a      )  # we have found another factor
      facs.sort()
      return facs


if __name__ == "__main__":
     testmod(name="factors_of_a_number", verbose=True)






import math
from decimal import Decimal, getcontext




def 						UpperCAmelCase (    _lowerCamelCase = 400_0000     ):

			try:
						A				:       Any														=    int(_lowerCamelCase     )
			except (TypeError, ValueError):
						raise TypeError("Parameter n must be int or castable to int."     )
			if n <= 0:
						raise ValueError("Parameter n must be greater than or equal to one."     )
			A				:       int														=    100
			A				:       Tuple														=    (Decimal(5     ) ** Decimal(0.5     ) + 1) / Decimal(2     )

			A				:       str														=    (math.floor(math.log(n * (phi + 2)			,     _lowerCamelCase     ) - 1     ) // 3) * 3 + 2
			A				:       Optional[int]														=    Decimal(round(phi ** Decimal(index + 1     )     )     ) / (phi + 2)
			A				:       str														=    num // 2
			return int(_lowerCamelCase     )


if __name__ == "__main__":
							print(F"""{solution() = }""")