




"""simple docstring"""





def        _UpperCamelCase     (      UpperCamelCase = 6008_5147_5143				)      ->      int:


			"""simple docstring"""

			try:
						__UpperCAmelCase						:			Dict												=       int(UpperCamelCase				)
			except (TypeError, ValueError):
						raise TypeError("Parameter n must be int or castable to int."				)
			if n <= 0:
						raise ValueError("Parameter n must be greater than or equal to one."				)
			__UpperCAmelCase						:			Optional[int]												=       1
			__UpperCAmelCase						:			Optional[int]												=       2
			while i * i <= n:
						while n % i == 0:
									__UpperCAmelCase						:			Union[str, Any]												=       i
									n //= i
						i += 1
			if n > 1:
						__UpperCAmelCase						:			List[str]												=       n
			return int(UpperCamelCase				)


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









'''simple docstring'''


from __future__ import annotations


def 						__a(SCREAMING_SNAKE_CASE_	:       int | float | str		,							SCREAMING_SNAKE_CASE_	:       int | float | str     ):



    '''simple docstring'''





    if nth_term == "":
        return [""]
    _lowerCAmelCase						      =   int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   []
    for temp in range(int(SCREAMING_SNAKE_CASE_     )     ):
        series.append(F'''1 / {pow(temp + 1		,							int(SCREAMING_SNAKE_CASE_     )     )}''' if series else "1"     )
    return series


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       _SCREAMING_SNAKE_CASE									=				int(input("Enter the last number (nth term) of the P-Series"))
       _SCREAMING_SNAKE_CASE									=				int(input("Enter the power for  P-Series"))
       print("Formula of P-Series => 1+1/2^p+1/3^p ..... 1/n^p")
       print(p_series(nth_term, power))


