
from itertools import product





def    _a (						lowerCamelCase = 15							):
 lowerCamelCase		:     float          =				0.0
 lowerCamelCase		:     float
 lowerCamelCase		:     int
 lowerCamelCase		:     int
 lowerCamelCase		:     int
 lowerCamelCase		:     int
 lowerCamelCase		:     tuple[int, ...]

 for series in product(range(2							),     repeat=lowerCamelCase							):
  lowerCamelCase		:     Any          =				series.count(1							)
  lowerCamelCase		:     Any          =				num_turns - num_blue
  if num_red >= num_blue:
   continue
  lowerCamelCase		:     List[Any]          =				1.0
  for ind, col in enumerate(lowerCamelCase,     2							):
   if col == 0:
    prob *= (ind - 1) / ind
   else:
    prob *= 1 / ind

  total_prob += prob

 return int(1 / total_prob							)


if __name__ == "__main__":
      print(f'''{solution() = }''')






def    _a (						lowerCamelCase,     lowerCamelCase,     lowerCamelCase							):
 lowerCamelCase		:     Optional[int]          =				[1 / first_term]
 lowerCamelCase		:     Any          =				1 / first_term
 for _ in range(number_of_terms - 1							):
  first_term += common_difference
  arithmetic_progression.append(lowerCamelCase							)
 lowerCamelCase		:     Optional[Any]          =				[1 / step for step in arithmetic_progression]
 return sum(lowerCamelCase							)


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      print(sum_of_harmonic_progression(1 / 2, 2, 2))




