OFFSET
1,2
COMMENTS
The sequence is composed of two main lines of terms, the upper, sparsely populated line, being even semiprimes, while the lower contains all other terms. The primes do not appear in their natural order, although those out of order are not common.
There are 73 fixed points in the first 500000 terms, these are 1, 16, 22, 28, 34, ..., 1901, 3174, 33376. It is likely no more exist. 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(3) = 5 as a(2) = 3 > a(1) = 1, and 5 is the smallest unused number that differs from 3 by more than 1 and is coprime to 3.
a(5) = 4 as a(4) = 2 < a(3) = 5, and 4 is the smallest unused number that differs from 2 by more than 1 and shares a factor with 2.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Sep 07 2025
STATUS
approved
