is_nthpow_residue(a, n, m) tests whether x^n = a (mod m) has a solution,
and nthroot_mod(a, n, p) returns the smallest solution, every solution
with all_roots = TRUE, or NULL (an empty vector) when there is none.
is_nthpow_residue(a, n, m) tests whether x^n = a (mod m) has a solution,
and nthroot_mod(a, n, p) returns the smallest solution, every solution
with all_roots = TRUE, or NULL (an empty vector) when there is none.