Apparently you are looking Modulus.
Reduce[x^2 == 123456, x, Modulus -> 1299709]
(* Out [] = x == 427784 || x == 871925 *)
Indication of documentation:
Module → n
is an option that can be specified in some algebraic functions to indicate that integers should be processed modulo n.
Solve .
Factor, PolynomialGCD PolynomialLCM, , Inverse, LinearSolve Det.
ℤ ; Modulus , ℤ n.
Modulus- > 0 ℤ .
, . ℤ n , n .