Edit: Find r and n in congruence $827. 3^{839} ≡ r \mod n$
I am new to this modulo arithmetic topic and was given a question to solve.
Find $n$ in the following equation: $$3^{839}\equiv827\bmod n$$
I have tried finding $3^{128}$ and thought of using the power laws to solve this equation but still unable to find $n$.
I am stuck and do not know how to proceed on any further.