Problem 2
Let n>6 be an integer and let be all positive integers less than n and relatively prime to n, in increasing order. If , prove that n is either a prime or a power of 2.
Step 3 of 5: When n is divisible by 4, the gap is 2
Detailed analysis
For n=4m, both 2m−1 and 2m+1 are odd and have gcd 1 with n. Their difference is 2, so d divides 2. Every listed number is odd, hence d cannot be 1; therefore d=2 and the list is exactly all odd numbers below n.