
'''simple docstring'''

from __future__ import annotations


def        UpperCAmelCase_ (  lowerCamelCase_      ,			lowerCamelCase_			):







 """simple docstring"""


 if nth_term == "":
  return [""]
 lowerCAmelCase__     :   Union[str, Any]     		=	int(lowerCamelCase_			)
 lowerCAmelCase__     :   List[str]     		=	int(lowerCamelCase_			)
 lowerCAmelCase__     :   list[str]     		=	[]
 for temp in range(int(lowerCamelCase_			)			):
  series.append(f'''1 / {pow(temp + 1      ,			int(lowerCamelCase_			)			)}''' if series else "1"			)
 return series


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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







'''simple docstring'''

def        UpperCAmelCase_ (  lowerCamelCase_      ,			lowerCamelCase_      ,			lowerCamelCase_      ,			lowerCamelCase_			):







 """simple docstring"""


 if height >= 1:
  move_tower(height - 1      ,			lowerCamelCase_      ,			lowerCamelCase_      ,			lowerCamelCase_			)
  move_disk(lowerCamelCase_      ,			lowerCamelCase_			)
  move_tower(height - 1      ,			lowerCamelCase_      ,			lowerCamelCase_      ,			lowerCamelCase_			)


def        UpperCAmelCase_ (  lowerCamelCase_      ,			lowerCamelCase_			):







 """simple docstring"""


 print("moving disk from"      ,			lowerCamelCase_      ,			"to"      ,			lowerCamelCase_			)


def        UpperCAmelCase_ (  ):







 """simple docstring"""


 lowerCAmelCase__     :   List[str]     		=	int(input("Height of hanoi: "			).strip()			)
 move_tower(lowerCamelCase_      ,			"A"      ,			"B"      ,			"C"			)


if __name__ == "__main__":
     main()





