I'm trying to solve the following equation for $c$.
$$a \equiv b^c \pmod {d}$$
I'm given arbitrarily large numbers ($a$, $b$, and $d$ to solve for c, examples below), but it's just not feasible to iterate through every possible $c$ and check (using the GNU Multiple Precision Arithmetic Library) the congruency. Is it possible to solve the equation for $c$ or limit my search space?
$a = 4.557304... \times 10^{308}$
$b = 201527$
$c = 1.9 \times 10^{38}$
$d = 1.569203... \times 10^{309}$