The problem with the question is that exponential functions such as b^x
are not well-defined functions modulo m
, even when m
is prime. In general, when the base b
is relatively prime to m
, the period of b^x
divides EulerPhi[m]
.
The same problem of defining b^x
holds when b
and x
belong to a field of order λ^n
. I only know of the exponential being defined for x
an integer, which induces a function on the integers modulo λ-1
in the case of a finite field of characteristic λ
.
Example:
λ = 71;
Pick[Range[λ], Mod[x^3 + x^5 - 3^x, λ] /. {x -> Range[λ]}, 0]
Pick[Range[λ], Mod[x^3 + x^5 - 3^x, λ] /. {x -> 3 λ + Range[λ]}, 0]
(* {54} *)
(* {34} *)
Conclusion: If x
is to be an element of a finite field, then the equation is undefined.
If, however, x
is merely to be chosen from the set of integers {1, .., λ}
, then the following will work.
λ = 71; (* changing the prime from 7 to 71 *)
Pick[Range[λ], Table[Mod[x^3 + x^5 - 3^x, λ], {x, λ}], 0]
(* {54} *)
If x
is to be chosen from the set {0, .., λ-1}
, then use the following instead.
Pick[Range[0, λ-1], Table[Mod[x^3 + x^5 - 3^x, λ], {x, 0, λ-1}], 0]
But it only makes a difference (for this example equation) for λ = 3
.
Modulus
option inSolve
however my experience is that it isn't perfect. $\endgroup$