To solve the problem, we need to find all positive integers n such that n has at least three divisors, and all the divisors can be arranged in a circle so that any two adjacent divisors are prime-related.
1. Prime Power Case:
- If n is a prime power, say n=pk where p is a prime and k≥1, then the divisors of n are 1,p,p2,…,pk.
- For n to have at least three divisors, k≥2.
- However, in this case, 1 and p must be adjacent, and p and p2 must be adjacent. But 1 and p2 are not prime-related, so n cannot be a prime power.
2. Perfect Square Case:
- If n is a perfect square, say n=m2, then n has an odd number of divisors.
- Consider the sum of the exponents of the primes in the prime factorization of a number. Each move (from one divisor to the next) changes the parity of this sum.
- Starting from 1 and ending at 1 after an odd number of moves implies that the parity of the sum of the exponents changes an odd number of times, which is a contradiction.
- Therefore, n cannot be a perfect square.
3. General Case:
- We claim that integers n with at least three prime factors work.
- Consider n=paqb where p and q are primes and a,b≥1.
- Assume b is odd. We can construct a sequence of divisors as follows:
1,q,pq,p2q,…,pa−1q,q2pa−1,q2pa−2,…,pq2,q2,q3,q3p,…,qb,qbp,qbp2,…,qbpa−1
- This sequence maintains the condition that any two adjacent divisors are prime-related.
- The remaining divisors are of the form pi and paqj for 1≤j≤b. We attach the following string:
paqb,paqb−1,…,paq,pa,pa−1,pa−2,…,p
- This construction works for n=paqb.
4. Inductive Step:
- Assume that for n=∏i=1k−1piai, there is a valid construction.
- For n′=∏i=1k+1piai, consider the sequence:
b1,b2,…,bl,pbl,p,bl−1,…,pb3,pb2,p2b2,p2b3,…,p2bl,…
- If ak+1 is even, the sequence ends with pak+1bl. If ak+1 is odd, it ends with pak+1b2.
- Add the following string:
pak+1b1,pak+1−1b1,…,p2b1,pb1
- This construction works, and every number which is not a square or a prime power works.
■
The final answer is all positive integers n that are not prime powers or perfect squares.