

"""simple docstring"""





def     _A    (    UpperCamelCase_	:			int,     UpperCamelCase_	:			int,     UpperCamelCase_	:			int)      ->		float:
   '''simple docstring'''


   if common_ratio == 1:
      # Formula for sum if common ratio is 1
      return num_of_terms * first_term

   # Formula for finding sum of n terms of a GeometricProgression
   return (first_term / (1 - common_ratio)) * (1 - common_ratio**num_of_terms)







"""simple docstring"""





def     _A    (    UpperCamelCase_	:			str)      ->		int:
   '''simple docstring'''


   __lowercase								=		0
   for plain_chr in plain_text:
      __lowercase								=		(
          ord(UpperCamelCase_) + (hash_value << 6) + (hash_value << 16) - hash_value
      )
   return hash_value




