





from __future__ import annotations




def     __UpperCamelCase						(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	)       ->     list[str]:
  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))









def     __UpperCamelCase						(_SCREAMING_SNAKE_CASE = 50	)       ->     int:
  lowercase__			    =						[1] * (length + 1)

  for row_length in range(3	,		length + 1	):
    for block_length in range(3	,		row_length + 1	):
      for block_start in range(row_length - block_length	):
        ways_number[row_length] += ways_number[
            row_length - block_start - block_length - 1
        ]

      ways_number[row_length] += 1

  return ways_number[length]


if __name__ == "__main__":
      print(f'''{solution() = }''')


