


"""simple docstring"""







from __future__ import annotations
def 					a__			(				SCREAMING_SNAKE_CASE    :    int | float | str				,      SCREAMING_SNAKE_CASE    :    int | float | str				):


  '''simple docstring'''







  if nth_term == "":
    return [""]
  lowerCAmelCase     :     Optional[int]								=							int(SCREAMING_SNAKE_CASE				)
  lowerCAmelCase     :     Optional[Any]								=							int(SCREAMING_SNAKE_CASE				)
  lowerCAmelCase     :     list[str]								=							[]
  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()

     lowerCAmelCase__      				=   int(input('''Enter the last number (nth term) of the P-Series'''))
     lowerCAmelCase__      				=   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 	snake_case__			(    SCREAMING_SNAKE_CASE_		:    str			):



     '''simple docstring'''





     if not all(char in '01' for char in bin_string			):
          raise ValueError('Non-binary value was passed to the function'			)
     if not bin_string:
          raise ValueError('Empty string was passed to the function'			)
     lowercase__    :   Union[str, Any]      =       ''
     while len(SCREAMING_SNAKE_CASE_			) % 3 != 0:
          lowercase__    :   List[str]      =       '0' + bin_string
     lowercase__    :   Any      =       [
         bin_string[index : index + 3]
         for index in range(len(SCREAMING_SNAKE_CASE_			)			)
         if index % 3 == 0
     ]
     for bin_group in bin_string_in_3_list:
          lowercase__    :   str      =       0
          for index, val in enumerate(SCREAMING_SNAKE_CASE_			):
               oct_val += int(2 ** (2 - index) * int(SCREAMING_SNAKE_CASE_			)			)
          oct_string += str(SCREAMING_SNAKE_CASE_			)
     return oct_string


if __name__ == "__main__":
       from doctest import testmod

       testmod()

