





from __future__ import annotations

__A							   =							[]





def 	lowerCAmelCase_					(			__a      ,       __a      ,       __a						)	->						bool:







  """simple docstring"""





  for i in range(len(__a						)						):
    if board[row][i] == 1:
      return False
  for i in range(len(__a						)						):
    if board[i][column] == 1:
      return False
  for i, j in zip(range(__a      ,       -1      ,       -1						)      ,       range(__a      ,       -1      ,       -1						)						):
    if board[i][j] == 1:
      return False
  for i, j in zip(range(__a      ,       -1      ,       -1						)      ,       range(__a      ,       len(__a						)						)						):
    if board[i][j] == 1:
      return False
  return True





def 	lowerCAmelCase_					(			__a      ,       __a						)	->						bool:







  """simple docstring"""





  if row >= len(__a						):
    solution.append(__a						)
    printboard(__a						)
    print()
    return True
  for i in range(len(__a						)						):
    if is_safe(__a      ,       __a      ,       __a						):
      lowerCamelCase__: List[str]         =1
      solve(__a      ,       row + 1						)
      lowerCamelCase__: List[str]         =0
  return False





def 	lowerCAmelCase_					(			__a						)	->						None:







  """simple docstring"""





  for i in range(len(__a						)						):
    for j in range(len(__a						)						):
      if board[i][j] == 1:
        print("Q"      ,       end=" "						)
      else:
        print("."      ,       end=" "						)
    print()


# n=int(input("The no. of queens"))
__A							   =							8
__A							   =							[[0 for i in range(n)] for j in range(n)]
solve(board, 0)






print("The total no. of solutions are :", len(solution))






from __future__ import annotations





def 		a__      (		_UpperCamelCase      :			int | float | str			,_UpperCamelCase      :			int | float | str				):
   if nth_term == "":
      return [""]
   __lowerCamelCase    				=     int(_UpperCamelCase				)
   __lowerCamelCase    				=     int(_UpperCamelCase				)
   __lowerCamelCase    				=     []
   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_								=       int(input("""Enter the last number (nth term) of the P-Series"""))
  a_								=       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))






