


"""simple docstring"""





from __future__ import annotations





def     lowercase__	(  lowerCamelCase     :  Union[str, Any]				,	lowerCamelCase     :  Dict				,	lowerCamelCase     :  Dict				,	)					->     list[float | int]:





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


if __name__ == "__main__":
      import doctest

      doctest.testmod()

      __UpperCAmelCase    				=      float(input("Enter the last number (n term) of the Geometric Series"))
      __UpperCAmelCase    				=      float(input("Enter the starting term (a) of the Geometric Series"))
      __UpperCAmelCase    				=      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"""





from math import factorial





def     lowercase__	(  lowerCamelCase     :  Dict				,	lowerCamelCase     :  int				)					->     Tuple:
  return factorial(lowerCamelCase				) / (factorial(lowerCamelCase				) * factorial(n - r				))





def     lowercase__	(  )					->     Optional[Any]:
  lowerCAmelCase__    :    List[Any]								=					0

  for i in range(1				,	1_0_1				):
    for j in range(1				,	i + 1				):
      if combinations(lowerCamelCase				,	lowerCamelCase				) > 1e6:
        total += 1
  return total


if __name__ == "__main__":
   print(solution())
