






'''simple docstring'''







from collections.abc import Iterable
from typing import Generic, TypeVar

_A     :      List[str]   					=TypeVar('''_T''')

class _lowercase     (    Generic[_T]		):




							def __init__(							self:    Union[str, Any]      ,							UpperCamelCase__:    Iterable[_T] | None = None					):
														lowerCamelCase__ :     list[_T]	  =	list(iterable or []					)
														lowerCamelCase__ :     list[_T]	  =	[]




							def __len__(							self:    Tuple					):
														return len(self._stacka					) + len(self._stacka					)




							def __repr__(							self:    Union[str, Any]					):
														return F'''Queue({tuple(self._stacka[::-1] + self._stacka					)})'''




							def 		lowerCamelCase_    (							self:    Tuple      ,							UpperCamelCase__:    _T					):
														self._stacka.append(UpperCamelCase__					)




							def 		lowerCamelCase_    (							self:    Dict					):
														lowerCamelCase__ :     List[Any]	  =	self._stacka.pop
														lowerCamelCase__ :     Optional[int]	  =	self._stacka.append

														if not self._stacka:
																					while self._stacka:
																												stacka_append(stacka_pop()					)

														if not self._stacka:
																					raise IndexError("""Queue is empty"""					)
														return self._stacka.pop()


if __name__ == "__main__":
			from doctest import testmod

			testmod()









'''simple docstring'''







from __future__ import annotations





def 			SCREAMING_SNAKE_CASE_	(UpperCamelCase    ,      UpperCamelCase				)				->	list[str]:
							if nth_term == "":
														return [""]
							lowerCamelCase__ :     str	  =	int(UpperCamelCase				)
							lowerCamelCase__ :     Union[str, Any]	  =	int(UpperCamelCase				)
							lowerCamelCase__ :     list[str]	  =	[]
							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     :      Optional[Any]   					=int(input('''Enter the last number (nth term) of the P-Series'''))
			_A     :      List[str]   					=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))

