$$f(x)=3^x \mod{17}$$
How to find the pre-image of the set if this function maps from real numbers to real numbers. What command would I use, to see the pre-image if the function would map from integers to integers.
It is easy to compute with mathematica, but the command to find the pre-image I cannot find.
What I tried, and there are no methods available to solve it:
Solve[y == 3^x - 17 Floor[3^x/17], x]
MultiplicativeOrder
like this:pri = Table[MultiplicativeOrder[3, 17, i], {i, 17 - 1}]
and you can verify withTable[Mod[3^y, 17], {y, pri}]
$\endgroup$PowerMod
e.g.PowerMod[3, x, 17]
$\endgroup$domain = -1 < u < 60; range = 3 < y < 5; Reduce[y == PiecewiseExpand[Mod[u, 17], domain] && domain && range /. u -> 3^x, {x}, {y}, Reals]
. Let someone else take it from here. $\endgroup$