While congruences can be quickly brute-forced for small n, some of the transformations of even quadratic equations with small coefficients generate congruences with n in the hundred-thousands. In these cases, it would be better to use a faster algorithm.
Even just factoring the modulus, solving the smaller congruences and combining the result may help.
While congruences can be quickly brute-forced for small n, some of the transformations of even quadratic equations with small coefficients generate congruences with n in the hundred-thousands. In these cases, it would be better to use a faster algorithm.
Even just factoring the modulus, solving the smaller congruences and combining the result may help.
These sources may be helpful: