I would like to calculate $d^{1/x} \bmod n$ where $d$ and $x$ belong to $\Bbb Z_n$. Here $x$ is greater than one, thus $1/x$ is less than one. How can I do a computation like that? For example what is the result of
$$5^{0,23} \bmod 4?$$
(In fact I am trying to implement this in the language PHP, but this is not important.)
Thanks again.