Could this discrete logarithm problem be proved?

50 Views Asked by At

Given some values $X$, $Y$, $A$, $B$ and $p$, is there a way to show that there exists (or doesn't exist) an $n$ such that $X = A^n \mod{p}$ and $Y = B^n \mod{p}$? Alternatively, are there particular conditions for $X$ and $Y$ to satisfy in order for such an $n$ to exist or not exist?

Thanks