


from ..utils import DummyObject, requires_backends



class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		str ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		Optional[int]						)		->  Optional[Any]:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		str ,   *_UpperCAmelCase       :		List[Any] ,   **_UpperCAmelCase       :		Optional[int]						)		->  Optional[Any]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		Tuple ,   *_UpperCAmelCase       :		int ,   **_UpperCAmelCase       :		Tuple						)		->  Optional[int]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		Optional[int] ,   *_UpperCAmelCase       :		int ,   **_UpperCAmelCase       :		Optional[int]						)		->  Union[str, Any]:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		Optional[Any] ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		int						)		->  Tuple:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		str ,   *_UpperCAmelCase       :		Dict ,   **_UpperCAmelCase       :		Any						)		->  int:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		Any ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		Tuple						)		->  int:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		Union[str, Any] ,   *_UpperCAmelCase       :		str ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  Union[str, Any]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		Any ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  Union[str, Any]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		Dict ,   *_UpperCAmelCase       :		Optional[int] ,   **_UpperCAmelCase       :		List[str]						)		->  Dict:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		List[Any] ,   *_UpperCAmelCase       :		int ,   **_UpperCAmelCase       :		List[str]						)		->  List[Any]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		Optional[int] ,   *_UpperCAmelCase       :		Optional[int] ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  Tuple:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		List[Any] ,   *_UpperCAmelCase       :		Optional[int] ,   **_UpperCAmelCase       :		Tuple						)		->  Dict:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		Union[str, Any] ,   *_UpperCAmelCase       :		List[str] ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  str:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		Optional[int] ,   *_UpperCAmelCase       :		Optional[Any] ,   **_UpperCAmelCase       :		List[str]						)		->  List[str]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






class 				A       (			metaclass=UpperCAmelCase__				):
					'''simple docstring'''






					A__     =					['''torch''', '''transformers''', '''onnx''']

					def __init__(self       :		Optional[int] ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  Optional[Any]:




							"""simple docstring"""


							requires_backends(self ,   ["""torch""", """transformers""", """onnx"""]						)

					@classmethod
					def     lowerCamelCase__	(cls       :		Union[str, Any] ,   *_UpperCAmelCase       :		Tuple ,   **_UpperCAmelCase       :		Optional[Any]						)		->  Any:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)


					@classmethod
					def     lowerCamelCase__	(cls       :		Tuple ,   *_UpperCAmelCase       :		List[str] ,   **_UpperCAmelCase       :		Union[str, Any]						)		->  Optional[Any]:




							"""simple docstring"""


							requires_backends(cls ,   ["""torch""", """transformers""", """onnx"""]						)






from __future__ import annotations





def 		a__      (		_UpperCamelCase      :			int | float | str			,_UpperCamelCase      :			int | float | str				):
   if nth_term == "":
      return [""]
   __lowerCamelCase    				=     int(_UpperCamelCase				)
   __lowerCamelCase    				=     int(_UpperCamelCase				)
   __lowerCamelCase    				=     []
   for temp in range(int(_UpperCamelCase				)				):
      series.append(F"""1 / {pow(temp + 1			,int(_UpperCamelCase				)				)}""" if series else '''1'''				)
   return series


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  a_								=       int(input("""Enter the last number (nth term) of the P-Series"""))
  a_								=       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))






