
"""simple docstring"""




def 							a__ (				lowerCAmelCase	:       str		):






     '''simple docstring'''
     if n_term == "":
          return []
     UpperCAmelCase__							: list 							=						[]
     for temp in range(int(lowerCAmelCase		)		):
          series.append(F"1/{temp + 1}" if series else "1"		)
     return series


if __name__ == "__main__":
  A__      :	List[str]          =    input("""Enter the last number (nth term) of the Harmonic Series""")
  print("""Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n""")
  print(harmonic_series(nth_term))





"""simple docstring"""




def 							a__ (				lowerCAmelCase	:       int		):






     '''simple docstring'''
     if a < 0:
          raise ValueError("Input value must be a positive integer"		)
     elif isinstance(lowerCAmelCase       ,    lowerCAmelCase		):
          raise TypeError("Input value must be a 'int' type"		)
     return bin(lowerCAmelCase		).count("1"		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()



