




import doctest
from collections import deque

import numpy as np






class 					__magic_name__							:






				'''simple docstring'''





				def __init__( self				):





							"""simple docstring"""
							lowerCamelCase       =      [2, 1, 2, -1]
							lowerCamelCase       =      [1, 2, 3, 4]





				def      _lowerCAmelCase       ( self				):





							"""simple docstring"""
							lowerCamelCase       =      len(self.first_signal				)
							lowerCamelCase       =      len(self.second_signal				)

							lowerCamelCase       =      max(lowerCamelCase_	,				lowerCamelCase_				)

							# create a zero matrix of max_length x max_length
							lowerCamelCase       =      [[0] * max_length for i in range(lowerCamelCase_				)]

							# fills the smaller signal with zeros to make both signals of same length
							if length_first_signal < length_second_signal:
										self.first_signal += [0] * (max_length - length_first_signal)
							elif length_first_signal > length_second_signal:
										self.second_signal += [0] * (max_length - length_second_signal)
							for i in range(lowerCamelCase_				):
										lowerCamelCase       =      deque(self.second_signal				)
										rotated_signal.rotate(lowerCamelCase_				)
										for j, item in enumerate(lowerCamelCase_				):
													matrix[i][j] += item

        # multiply the matrix with the first signal
							lowerCamelCase       =      np.matmul(np.transpose(lowerCamelCase_				)	,				np.transpose(self.first_signal				)				)

							# rounding-off to two decimal places
							return [round(lowerCamelCase_	,				2				) for i in final_signal]


if __name__ == "__main__":
					doctest.testmod()









"""simple docstring"""




def 					a__				(       snake_case__       )		->      list:
			if n_term == "":
						return []
			lowerCamelCase       =      []
			for temp in range(int(snake_case__       )       ):
						series.append(F'1/{temp + 1}' if series else """1"""       )
			return series


if __name__ == "__main__":
					lowerCAmelCase							:    Optional[int]  							=							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))



