"""simple docstring"""







def 					a__ (						UpperCAmelCase__    :     int						,     UpperCAmelCase__    :     int						,     UpperCAmelCase__    :     int     )->		float:
						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"""







import safs


class      _lowercase						(				safs.SaFileSystem					):
				pass

