code: 
  
  
  from __future__ import annotations
  
  
  
  
  def 			__lowercase	(						_UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase,    )    ->list[float | int]:
  
  
  
  
  
  
  
        """simple docstring"""
  
        if not all((nth_term, start_term_a, common_ratio_r)     ):
              return []
        lowercase			:   Any					   =		[]
        lowercase			:   Union[str, Any]					   =		1
        lowercase			:   Dict					   =		common_ratio_r
        for _ in range(int(_UpperCamelCase     )     ):
              if not series:
                    series.append(_UpperCamelCase     )
              else:
                    power += 1
                    series.append(float(start_term_a * multiple     )     )
                    lowercase			:   int					   =		pow(float(_UpperCamelCase     ),    _UpperCamelCase     )
        return series
  
  
  if __name__ == "__main__":
    import doctest
  
    doctest.testmod()
  
    __a   				=      float(input('''Enter the last number (n term) of the Geometric Series'''))
    __a   				=      float(input('''Enter the starting term (a) of the Geometric Series'''))
    __a   				=      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))
  
style_context: 
  
  
  from __future__ import annotations
  
  
  
  
  def 			__lowercase	(						_UpperCamelCase     )    ->list[int]:
  
  
  
  
  
  
  
        """simple docstring"""
  
        assert (
            isinstance(_UpperCamelCase,    _UpperCamelCase     ) and mask > 0
        ), f"""mask needs to be positive integer, your input {mask}"""
        lowercase			:   Optional[int]					   =		[]
        lowercase			:   Optional[int]					   =		mask
  
        while submask:
              all_submasks.append(_UpperCamelCase     )
              lowercase			:   Dict					   =		(submask - 1) & mask
  
        return all_submasks
  
  
  if __name__ == "__main__":
    import doctest
  
    doctest.testmod()
  
  