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

A375000
Position of the last requested element when the elements of the n-th composition (in standard order) are requested from a self-organizing list initialized to (1, 2, 3, ...), where a requested element at position i is moved to position floor((i+1)/2).
4
1, 2, 1, 3, 2, 2, 1, 4, 1, 1, 1, 3, 2, 2, 1, 5, 1, 3, 1, 3, 2, 2, 1, 4, 1, 1, 1, 3, 2, 2, 1, 6, 1, 3, 1, 2, 1, 3, 1, 4, 3, 1, 1, 3, 2, 2, 1, 5, 1, 3, 1, 3, 2, 2, 1, 4, 1, 1, 1, 3, 2, 2, 1, 7, 1, 2, 1, 4, 1, 3, 1, 4, 2, 2, 1, 2, 1, 3, 1, 5, 3, 1, 2, 3, 2, 2, 1
OFFSET
1,2
COMMENTS
See A374995 for details.
FORMULA
a(n) = A374995(n) - A374995(A025480(n-1)).
Sum_{j=1..m} a(n*2^j+2^(j-1)) = m*(m+1)/2 if m >= A333766(n). This is a consequence of the fact that the first m positions of the list are occupied by the elements 1, ..., m, as long as no element larger than m has been requested so far.
CROSSREFS
Analogous sequences for other updating strategies: A374997, A374998, A374999.
Cf. A025480, A066099 (compositions in standard order), A333766, A374995.
Sequence in context: A342507 A261337 A374998 * A337195 A368544 A260088
KEYWORD
nonn
AUTHOR
STATUS
approved