login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A355213
Inverse permutation to A355212.
2
1, 2, 4, 6, 8, 3, 10, 12, 14, 7, 16, 5, 18, 11, 20, 22, 24, 13, 26, 21, 28, 30, 32, 29, 34, 36, 38, 40, 42, 35, 44, 46, 15, 23, 9, 37, 48, 50, 19, 51, 53, 39, 55, 57, 59, 31, 61, 58, 63, 65, 67, 69, 71, 66, 73, 64, 27, 41, 75, 68, 77, 45, 79, 81, 83, 80, 85
OFFSET
1,2
COMMENTS
Equivalently: lexicographically earliest sequence of distinct positive integers such that a(1) = 1, and for any m, n > 1, if abs(a(n) - a(m)) = 1, then gcd(m, n) > 1.
EXAMPLE
A355212(39) = 42 so a(42) = 39.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A355212.
Sequence in context: A354721 A355506 A241012 * A064745 A304090 A218454
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jun 24 2022
STATUS
approved