



from __future__ import annotations



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


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							lowercase_										=  int(input("""Enter the last number (nth term) of the P-Series"""))
							lowercase_										=  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    lowerCamelCase__		(    SCREAMING_SNAKE_CASE   : list[int]							, SCREAMING_SNAKE_CASE   : list[int]							, SCREAMING_SNAKE_CASE   : int    ):
  return not any(
      neighbour == 1 and colored_vertices[i] == color
      for i, neighbour in enumerate(SCREAMING_SNAKE_CASE    )    )


def    lowerCamelCase__		(    SCREAMING_SNAKE_CASE   : list[list[int]]							, SCREAMING_SNAKE_CASE   : int							, SCREAMING_SNAKE_CASE   : list[int]							, SCREAMING_SNAKE_CASE   : int    ):

  # Base Case
  if index == len(SCREAMING_SNAKE_CASE    ):
    return True

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



def    lowerCamelCase__		(    SCREAMING_SNAKE_CASE   : list[list[int]]							, SCREAMING_SNAKE_CASE   : int    ):
  UpperCAmelCase    				=						[-1] * len(SCREAMING_SNAKE_CASE    )

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

  return []


