def        __UpperCAmelCase    (       UpperCAmelCase       )->       list:



			"""simple docstring"""







			if n_term == "":
						return []
			lowercase							=		[]
			for temp in range(int(__lowerCAmelCase       )       ):
						series.append(f'1/{temp + 1}' if series else '''1'''       )
			return series


if __name__ == "__main__":
						A_      =      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))






def        __UpperCAmelCase    (       UpperCAmelCase,		UpperCAmelCase       )->       int:



			"""simple docstring"""







			while a != 0:
						lowercase		,lowercase							=		b % a, a
			return b






def        __UpperCAmelCase    (       UpperCAmelCase,		UpperCAmelCase       )->       int:



			"""simple docstring"""







			if gcd(UpperCAmelCase,		UpperCAmelCase       ) != 1:
						lowercase							=		f'mod inverse of {a!r} and {m!r} does not exist'
						raise ValueError(UpperCAmelCase       )
			lowercase		,lowercase		,lowercase							=		1, 0, a
			lowercase		,lowercase		,lowercase							=		0, 1, m
			while va != 0:
						lowercase							=		ua // va
						lowercase		,lowercase		,lowercase		,lowercase		,lowercase		,lowercase							=		(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
			return ua % m





