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

A284549
Lexicographically earliest sequence such that a(0) = 1 and a(n + k) != a(n - k) for all 0 < k <= ceiling(n/a(n)).
1
1, 1, 2, 2, 1, 3, 3, 4, 2, 1, 1, 2, 4, 5, 5, 6, 6, 4, 3, 2, 2, 1, 1, 3, 7, 7, 8, 8, 9, 9, 2, 1, 3, 3, 4, 2, 1, 5, 5, 4, 6, 6, 10, 10, 7, 11, 9, 8, 3, 2, 8, 3, 4, 5, 1, 1, 2, 7, 10, 6, 6, 4, 5, 9, 11, 12, 8, 8, 3, 11, 7, 2, 2, 1, 9, 10, 12, 4, 1, 5, 4, 3, 10
OFFSET
0,3
COMMENTS
a(3) = 2 therefore a(4) != a(2) and a(5) != a(1). Note that k = floor(3/2) = 2.
CROSSREFS
Cf. A284548.
Sequence in context: A245370 A321341 A377305 * A200779 A286558 A368153
KEYWORD
nonn
AUTHOR
Peter Kagey, Mar 28 2017
STATUS
approved