




'''simple docstring'''




def   a_							(   __snake_case							:    list     )							->		bool:



       """simple docstring"""
       if not isinstance(__snake_case     , __snake_case     ):
              raise ValueError('''Input series is not valid, valid series - [1, 2/3, 2]'''     )
       if len(__snake_case     ) == 0:
              raise ValueError('''Input list must be a non empty list'''     )
       if len(__snake_case     ) == 1 and series[0] != 0:
              return True
       lowerCamelCase_							=[]
       lowerCamelCase_							=len(__snake_case     )
       for i in range(0     , __snake_case     ):
              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     , __snake_case     ):
              if rec_series[index] - rec_series[index - 1] != common_diff:
                     return False
       return True





def   a_							(   __snake_case							:    list     )							->		float:



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


if __name__ == "__main__":
     import doctest

     doctest.testmod()










'''simple docstring'''




from .hash_table import HashTable


class 						__UpperCamelCase (				lowerCamelCase__       ):






       def __init__(							self,	*lowerCAmelCase,	**lowerCAmelCase						):



              """simple docstring"""







              super().__init__(*lowerCAmelCase,	**lowerCAmelCase						)






       def   lowercase__  (							self,	lowerCAmelCase,	lowerCAmelCase=None						):



              """simple docstring"""







              lowerCamelCase_							=1
              lowerCamelCase_							=self.hash_function(key + i * i						)

              while self.values[new_key] is not None and self.values[new_key] != key:
                     i += 1
                     lowerCamelCase_							=(
                         self.hash_function(key + i * i						)
                         if not self.balanced_factor() >= self.lim_charge
                         else None
                     )

                     if new_key is None:
                            break

              return new_key




