This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A374997 #5 Jul 28 2024 17:01:29 %S A374997 1,2,1,3,2,2,1,4,2,1,1,3,2,2,1,5,2,3,1,3,2,2,1,4,2,1,1,3,2,2,1,6,2,3, %T A374997 1,1,3,3,1,4,3,1,1,3,2,2,1,5,2,3,1,3,2,2,1,4,2,1,1,3,2,2,1,7,2,3,1,4, %U A374997 3,3,1,4,2,1,1,2,2,3,1,5,3,2,1,3,2,2,1 %N A374997 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, ...), using the move-to-front updating strategy. %C A374997 See A374992 for details. %F A374997 a(n) = A374992(n) - A374992(A025480(n-1)). %F A374997 a(n) = A375001(k,n) whenever k >= A333766(n)-1. %F A374997 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. %Y A374997 Analogous sequences for other updating strategies: A374998, A374999, A375000, A375001. %Y A374997 Cf. A025480, A066099 (compositions in standard order), A333766, A374992. %K A374997 nonn %O A374997 1,2 %A A374997 _Pontus von Brömssen_, Jul 27 2024