from __future__ import annotations






def 					snake_case    (			snake_case__     :Dict  ,      snake_case__     :List[str])		->  Tuple:


       if nth_term == "":
              return [""]
       _A	  =    int(a__)
       _A	  =    int(a__)
       _A	  =    []
       for temp in range(int(a__)):
              series.append(F'''1 / {pow(temp + 1  ,      int(a__))}''' 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))







'''simple docstring'''



import math







def   a__			(    a__		):




     """simple docstring"""


     return math.sqrt(a__		) * math.sqrt(a__		) == num







def   a__			(    a__		):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE      = 0
     __SCREAMING_SNAKE_CASE      = n
     while left <= right:
          __SCREAMING_SNAKE_CASE      = (left + right) // 2
          if mid**2 == n:
               return True
          elif mid**2 > n:
               __SCREAMING_SNAKE_CASE      = mid - 1
          else:
               __SCREAMING_SNAKE_CASE      = mid + 1
     return False


if __name__ == "__main__":
  import doctest

  doctest.testmod()






