MathLabs

Problem 1

Let n,k≥2n, k \ge 2 be positive integers and let a1,a2,…,aka_1, a_2, \dots, a_k be distinct integers in the set {1,2,…,n}\{1, 2, \dots, n\} such that nn divides ai(ai+1−1)a_i(a_{i+1} - 1) for i=1,2,…,k−1i = 1, 2, \dots, k - 1. Prove that nn does not divide ak(a1−1)a_k(a_1 - 1).
Step 3 of 5: Case p | a₁: chase the cycle backward
p∣a1  ⟹  q∣ai for every i=1,…,kp \mid a_1 \implies q \mid a_i \text{ for every } i=1,\dots,k
Detailed analysis

If p∣a1p\mid a_1 then p∤(a1−1)p\nmid(a_1-1), so a1−1a_1-1 is invertible modulo qq. From ak(a1−1)≡0(modq)a_k(a_1-1)\equiv0\pmod q we get q∣akq\mid a_k. Now p∣akp\mid a_k makes ak−1a_k-1 invertible mod qq, so ak−1(ak−1)≡0(modq)a_{k-1}(a_k-1)\equiv0\pmod q gives q∣ak−1q\mid a_{k-1}. Repeating this backward through the relations i=k−1,k−2,…,1i=k-1,k-2,\dots,1 shows q∣aiq\mid a_i for every i=1,…,ki=1,\dots,k: all the aia_i are ≡0(modq)\equiv 0\pmod q.