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”).

A369294
Lexicographically earliest sequence of distinct positive integers such that a(1) = 1, a(2) = 2, a(3) = 3, and for any n > 3, A091255(a(n), a(n-2)) <> 1 and A091255(a(n), a(n-1)) = 1.
2
1, 2, 3, 4, 5, 8, 9, 16, 7, 6, 21, 10, 35, 12, 13, 14, 23, 22, 15, 11, 17, 44, 27, 26, 29, 28, 33, 32, 31, 18, 155, 20, 81, 24, 127, 30, 49, 34, 69, 36, 173, 40, 19, 39, 38, 43, 42, 25, 45, 50, 51, 52, 53, 56, 57, 62, 63, 64, 65, 74, 71, 37, 46, 251, 48, 79
OFFSET
1,2
COMMENTS
This sequence is a variant of the Yellowstone permutation (A098550).
Is this a permutation of the positive integers?
PROG
(PARI) See Links section.
CROSSREFS
See A369293 for a similar sequence.
Sequence in context: A354829 A085152 A264886 * A287117 A286431 A015931
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 18 2024
STATUS
approved