I'm learning about the Pollard rho factorization algorithms and I couldn't understand one point in the derivation of the algorithm.
Suppose that we want to factor a number $n$ and $p$ is the least prime factor of $n$. There is a function $F$ defined as $F(x) =x^2 + 1 \mod n$ and the following relationship is correct $$ F^{(j)}(s)=F^{(k)}(s) \mod p $$ How is it possible to show that $\gcd(F^{(j)}(s)-F^{(k)}(s),n)$ is divisible by $p$?