






"""simple docstring"""



def 						lowerCamelCase_				(  __A  :		Optional[Any]			):
     if not isinstance(lowercase__			,	lowercase__			):
          raise ValueError('Input series is not valid, valid series - [1, 2/3, 2]'			)
     if len(lowercase__			) == 0:
          raise ValueError('Input list must be a non empty list'			)
     if len(lowercase__			) == 1 and series[0] != 0:
          return True
     lowerCamelCase__				=[]
     lowerCamelCase__				=len(lowercase__			)
     for i in range(0			,	lowercase__			):
          if series[i] == 0:
               raise ValueError('Input series cannot have 0 as an element'			)
          rec_series.append(1 / series[i]			)
     lowerCamelCase__				=rec_series[1] - rec_series[0]
     for index in range(2			,	lowercase__			):
          if rec_series[index] - rec_series[index - 1] != common_diff:
               return False
     return True




def 						lowerCamelCase_				(  __A  :		Dict			):
     if not isinstance(lowercase__			,	lowercase__			):
          raise ValueError('Input series is not valid, valid series - [2, 4, 6]'			)
     if len(lowercase__			) == 0:
          raise ValueError('Input list must be a non empty list'			)
     lowerCamelCase__				=0
     for val in series:
          answer += 1 / val
     return len(lowercase__			) / answer


if __name__ == "__main__":
      import doctest

      doctest.testmod()







"""simple docstring"""



from doctest import testmod
from math import sqrt




def 						lowerCamelCase_				(  __A  :		int			):
					lowerCamelCase__				=[]
					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			)
															lowerCamelCase__				=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)