I'm trying to solve
$$ 2^x \equiv 9 \pmod{13} $$
so I tried to define all numbers for $x$ which match this requirement and I came up with this equation:
$$ \sqrt{\sin(((x)-13/2-9)*\pi/13)^2} $$
now i just want numbers 2^x and i changed it to
$$ \sqrt{\sin(((2^x)-13/2-9)*\pi/13)^2} = 1 $$
this part seems to work, i come to
$${pi = pi, x = ln(-1/2*(-31*pi+13*Pi)/pi)/ln(2)}, {pi = pi, x = ln(1/2*(31*pi+13*Pi)/pi)/ln(2)}$$
and
$$ 2^(1.442695041*ln(-.5000000000*(-31.*pi+40.84070450)/pi)) = 9.00000000099 $$
the second requirement is that $x$ is an integer, I defined it by this equation
$$ \sqrt{\sin((x+1/2)*\pi)^2}=1 $$
but when I try to solve this system of equations with maple, I don't get an answer, why?

