
'''simple docstring'''





from __future__ import annotations







def snake_case_    (				lowercase__      ,					lowercase__      ,					lowercase__      ,					):
  if not all((nth_term, start_term_a, common_ratio_r)		):
    return []
  UpperCAmelCase__			:				list[float | int]												=       []
  UpperCAmelCase__			:				int												=       1
  UpperCAmelCase__			:				int												=       common_ratio_r
  for _ in range(int(lowercase__		)		):
    if not series:
      series.append(lowercase__		)
    else:
      power += 1
      series.append(float(start_term_a * multiple		)		)
      UpperCAmelCase__			:				Dict												=       pow(float(lowercase__		)      ,					lowercase__		)
  return series


if __name__ == "__main__":
      import doctest

      doctest.testmod()

      SCREAMING_SNAKE_CASE    =     float(input("""Enter the last number (n term) of the Geometric Series"""))
      SCREAMING_SNAKE_CASE    =     float(input("""Enter the starting term (a) of the Geometric Series"""))
      SCREAMING_SNAKE_CASE    =     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 doctest import testmod
from math import sqrt







def snake_case_    (				lowercase__		):
  UpperCAmelCase__			:				list[int]												=       []
  if num < 1:
    return facs
  facs.append(1		)
  if num == 1:
    return facs
  facs.append(lowercase__		)
  for i in range(2      ,					int(sqrt(lowercase__		)		) + 1		):
    if num % i == 0:  # If i is a factor of num
      facs.append(lowercase__		)
      UpperCAmelCase__			:				Tuple												=       num // i  # num//i is the other factor of num
      if d != i:  # If d and i are distinct
        facs.append(lowercase__		)  # we have found another factor
  facs.sort()
  return facs


if __name__ == "__main__":
      testmod(name="""factors_of_a_number""", verbose=True)



