cp's OEIS Frontend

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.

A338764 Let L_1 = (1, 2, ...); for any n > 0, let M_n = Min_{k > 0} L_n(k) + L_n(k+1) and K_n = Min_{ k | L_n(k) + L_n(k+1) = M_n }, L_{n+1} is obtained by replacing the two terms L_n(K_n) and L_n(K_n+1) by M_n in L_n; a(n) = K_n.

This page as a plain text file.
%I A338764 #11 Nov 09 2020 00:29:30
%S A338764 1,1,2,3,1,3,4,5,1,5,6,7,2,7,8,9,10,3,10,11,12,1,12,3,12,13,14,15,4,
%T A338764 15,16,17,18,5,18,19,20,21,6,1,20,21,22,23,6,23,24,25,26,7,26,2,26,27,
%U A338764 28,7,28,29,30,31,8,31,32,33,34,9,34,35,36,37,10,37,3
%N A338764 Let L_1 = (1, 2, ...); for any n > 0, let M_n = Min_{k > 0} L_n(k) + L_n(k+1) and K_n = Min_{ k | L_n(k) + L_n(k+1) = M_n }, L_{n+1} is obtained by replacing the two terms L_n(K_n) and L_n(K_n+1) by M_n in L_n; a(n) = K_n.
%C A338764 In other words, we start with the natural numbers and repeatedly replace the leftmost pair of consecutive terms with minimal sum by its sum; a(n) corresponds to the position of the pair substituted at n-th step.
%H A338764 Rémy Sigrist, <a href="/A338764/b338764.txt">Table of n, a(n) for n = 1..10000</a>
%H A338764 Rémy Sigrist, <a href="/A338764/a338764.gp.txt">PARI program for A338764</a>
%e A338764 The first terms, alongside L_n, are:
%e A338764   n   a(n)  L_n
%e A338764   --  ----  ----------------------------------------------------------
%e A338764    1     1  { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    2     1  {   3,  3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    3     2  {      6,  4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    4     3  {      6,    9,  6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    5     1  {      6,    9,   13,  8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    6     3  {         15,     13,  8, 9, 10, 11, 12, 13, 14, 15, ... }
%e A338764    7     4  {         15,     13,   17,  10, 11, 12, 13, 14, 15, ... }
%e A338764    8     5  {         15,     13,   17,    21,   12, 13, 14, 15, ... }
%e A338764    9     1  {         15,     13,   17,    21,     25,   14, 15, ... }
%e A338764   10     5  {             28,       17,    21,     25,   14, 15, ... }
%o A338764 (PARI) See Links section.
%Y A338764 Cf. A326936, A338763.
%K A338764 nonn
%O A338764 1,3
%A A338764 _Rémy Sigrist_, Nov 07 2020