




from __future__ import annotations


def 					_a							(					lowerCAmelCase    ,						lowerCAmelCase )->	Dict:




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


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						SCREAMING_SNAKE_CASE:     Dict									= int(input('''Enter the last number (nth term) of the P-Series'''))
						SCREAMING_SNAKE_CASE:     Optional[Any]									= 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					(      lowercase_       :  list[int]   ,       lowercase_       :  list[int]   ,       lowercase_       :  int   ):
       """simple docstring"""




       return not any(
           neighbour == 1 and colored_vertices[i] == color
           for i, neighbour in enumerate(lowercase_   )   )


def       __UpperCamelCase					(      lowercase_       :  list[list[int]]   ,       lowercase_       :  int   ,       lowercase_       :  list[int]   ,       lowercase_       :  int   ):
       """simple docstring"""




       if index == len(lowercase_   ):
              return True

       # Recursive Step
       for i in range(lowercase_   ):
              if valid_coloring(graph[index]   ,       lowercase_   ,       lowercase_   ):
                     # Color current vertex
                     a_						     =			i
                     # Validate coloring
                     if util_color(lowercase_   ,       lowercase_   ,       lowercase_   ,       index + 1   ):
                            return True
                     # Backtrack
                     a_						     =			-1
       return False


def       __UpperCamelCase					(      lowercase_       :  list[list[int]]   ,       lowercase_       :  int   ):
       """simple docstring"""




       a_						     =			[-1] * len(lowercase_   )

       if util_color(lowercase_   ,       lowercase_   ,       lowercase_   ,       0   ):
              return colored_vertices

       return []




