OFFSET
1,2
COMMENTS
The terms are all concentrated along three lines with the central line, consisting entirely of all the odd terms, along the line a(n) = n. Surprisingly however there are no fixed points in the first 100000 terms. In the same range the primes appear in their natural order. The sequence is conjectured to be a permutation of the positive integers.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
EXAMPLE
a(6) = 5 as a(5) = 6 is a composite number, and 5 is the smallest unused number that is coprime to 6.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Aug 19 2024
STATUS
approved