


'''simple docstring'''







from __future__ import annotations






def 	lowercase (_A      ,  _A      ,  _A      ,  ):







       """simple docstring"""







       if not all((nth_term, start_term_a, common_ratio_r)    ):
              return []
       _lowerCAmelCase			:							list[float | int]      	=				[]
       _lowerCAmelCase			:							Optional[int]      	=				1
       _lowerCAmelCase			:							Tuple      	=				common_ratio_r
       for _ in range(int(lowercase_    )    ):
              if not series:
                     series.append(lowercase_    )
              else:
                     power += 1
                     series.append(float(start_term_a * multiple    )    )
                     _lowerCAmelCase			:							List[str]      	=				pow(float(lowercase_    )      ,  lowercase_    )
       return series


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       lowerCAmelCase			:   List[Any] 		=  float(input("""Enter the last number (n term) of the Geometric Series"""))
       lowerCAmelCase			:   Union[str, Any] 		=  float(input("""Enter the starting term (a) of the Geometric Series"""))
       lowerCAmelCase			:   List[Any] 		=  float(
           input("""Enter the common ratio between two terms (r) of the Geometric Series""")
       )
       print("""Formula of Geometric Series => a + ar + ar^2 ... +ar^n""")
       print(geometric_series(nth_term, start_term_a, common_ratio_r))








"""simple docstring"""


def     lowercase__			(    lowercase_	)    ->						str:




      """simple docstring"""

      return " ".join(sorted(set(sentence.split()	)	)	)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
