MathLabs
Step 4 of 7: Dividing N by any listed prime leaves remainder 1
In plain words

Imagine packing N marbles into bags of size pip_i. The product part p1p2cdotspnp_1 p_2 \\cdots p_n fills an exact whole number of bags with nothing left over, so the "+ 1" at the end leaves 1 single marble sitting outside the bags — which means N cannot be divided evenly by pip_i.

N=pi⋅(∏j≠ipj)+1  ⟹  pi∤N(∀ i=1,…,n)N = p_i \cdot \left(\prod_{j \neq i} p_j\right) + 1 \implies p_i \nmid N \quad (\forall\, i = 1, \dots, n)
Detailed analysis

Pick any prime pip_i from our list L={p1,p2,…,pn}L = \{p_1, p_2, \dots, p_n\}. In the product P=p1p2⋯pnP = p_1 p_2 \cdots p_n, we can factor out pip_i and write P=pi⋅KP = p_i \cdot K, where K=∏j≠ipjK = \prod_{j \neq i} p_j is the product of the remaining primes in the list (or K=1K = 1 if n=1n = 1). Substituting this into the definition of NN gives N=pi⋅K+1N = p_i \cdot K + 1.

This equation says that when NN is divided by pip_i, the quotient is the integer KK and the remainder is 11. If pip_i were to divide NN evenly (pi∣Np_i \mid N), then since pip_i also divides pi⋅Kp_i \cdot K, it would have to divide their difference N−pi⋅K=1N - p_i \cdot K = 1. In Euclid's words in Book IX, Proposition 20, the prime "measures the remainder, the unit DFDF, which is absurd," because every prime satisfies pi≥2p_i \ge 2 and no integer ≥2\ge 2 can divide 11. Thus pi∤Np_i \nmid N for every pi∈Lp_i \in L.

Terms in this step
Divisibility and remainder
An integer d divides an integer a (written dmidad \\mid a) if a=dcdotka = d \\cdot k for some integer k with remainder 0; if a=dcdotk+ra = d \\cdot k + r with 0<r<d0 < r < d, then r is the remainder left over and d does not divide a (written dnmidad \\nmid a).
Knowledge used in this step