





'''simple docstring'''


_SCREAMING_SNAKE_CASE									=				{
    0: "0",
    1: "1",
    2: "2",
    3: "3",
    4: "4",
    5: "5",
    6: "6",
    7: "7",
    8: "8",
    9: "9",
    10: "a",
    11: "b",
    12: "c",
    13: "d",
    14: "e",
    15: "f",
}


def 						__a(SCREAMING_SNAKE_CASE_	:       float     ):



    '''simple docstring'''





    assert type(SCREAMING_SNAKE_CASE_     ) in (int, float) and decimal == int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   ""
    _lowerCAmelCase						      =   False
    if decimal < 0:
        _lowerCAmelCase						      =   True
        decimal *= -1
    while decimal > 0:
        _lowerCAmelCase      ,      _lowerCAmelCase						      =   divmod(SCREAMING_SNAKE_CASE_		,							16     )
        _lowerCAmelCase						      =   values[remainder] + hexadecimal
    _lowerCAmelCase						      =   "0x" + hexadecimal
    if negative:
        _lowerCAmelCase						      =   "-" + hexadecimal
    return hexadecimal


if __name__ == "__main__":
       import doctest

       doctest.testmod()









'''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						      =   int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   int(SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   []
    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()

       _SCREAMING_SNAKE_CASE									=				int(input("Enter the last number (nth term) of the P-Series"))
       _SCREAMING_SNAKE_CASE									=				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))


