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 A355080 #40 Jun 22 2022 20:41:30 %S A355080 1,1,2,2,1,2,3,3,1,3,2,4,4,3,4,1,2,4,3,5,5,1,5,4,2,5,3,6,6,4,6,5,1,6, %T A355080 2,3,5,6,4,7,7,1,7,2,6,7,5,3,4,7,8,8,6,8,1,5,8,7,2,3,8,6,4,7,9,9,8,9, %U A355080 5,1,9,2,6,8,9,7,3,4,5,9,10,10,8,10,1,7,10,6 %N A355080 Start with the positive integers. Term by term from left to right insert a copy of the current term x m steps further, where m is the number of times x has appeared. %C A355080 We start with the sequence of positive integers 1, 2, 3, ... . We process number by number from left to right. If the number is found the first time in the sequence, we will place a copy of it directly after, by shifting the remaining part of the sequence to the right. If we have already seen this number m times, we will place a copy of this number after skipping m numbers on the right. %C A355080 We could use the term ordinal instead of number here, as the numerical value itself is not important, only the ordering. %C A355080 This sequence was inspired by sequence A354223 from _Tamas Sandor Nagy_, which shares the idea to start with a predefined sequence and to insert copies ahead of element-wise evaluation. %C A355080 A mysterious constant C: %C A355080 The indices where this sequence reaches the next greater number for the first time are roughly approximated by a parabola: a(floor(b+(1/C)*n^2)) = 1, 2, 3, ... . %C A355080 a(k) approximates round(sqrt(C*k)) if we choose for k the indices where a new number appears the first time in this sequence. %C A355080 For each number in this sequence the indices of the appearance can be roughly approximated by some polynomial b+(1/C)*n^2, where b is some individual constant for each number, but C always appears to be the same constant, known thus far to be 1.1738... . The author used the value of sqrt(2/u), where u is Soldner's constant, with very good results, but there is yet not any evidence known that Soldner's constant has any relation to this sequence. Can we estimate C more accurately? Can we find an expression or series to describe C? %C A355080 _Tamas Sandor Nagy_ noticed that the value 1 appears exactly once between the first appearances of any two consecutive record values. He further noticed that if we break this sequence up into an irregular triangle in which each record value starts a new row, we will observe columns (A000124) which show a progression with the row number. See example section for details. %C A355080 The mean value of the rows mentioned above as a function of the row index r is approximately r/(Pi*log(2)^2) - 1/2. %H A355080 Thomas Scheuerle, <a href="/A355080/b355080.txt">Table of n, a(n) for n = 1..10000</a> %H A355080 Thomas Scheuerle, <a href="/A355080/a355080.png">Scatter plot of the first 10000 values</a> %H A355080 Thomas Scheuerle, <a href="/A355080/a355080_2.png">y = k - (1/C)*(x-0.283)^2, where k is the least k such that a(k) = x</a>. For C we chose sqrt(2/u) with u = 1.45... (A070769). %H A355080 Thomas Scheuerle, <a href="/A355080/a355080_3.png">y = k - (1/C)*(x-1.275)^2, where k is such that a(k) = 1 for the x-th appearance</a>. For C we chose sqrt(2/u) with u = 1.45... (A070769). %e A355080 Step-by-step development of the sequence is as follows; the asterisk marks the actual term that will be processed: %e A355080 * 1 was previously seen 0 times -> insert directly after. %e A355080 1,2,3,4,5,6,7,8,9,10 %e A355080 1,1,2,3,4,5,6,7,8,9,10 %e A355080 * 1 was previously seen once -> insert one later. %e A355080 1,1,2,3,4,5,6,7,8,9,10 %e A355080 1,1,2,1,3,4,5,6,7,8,9,10 %e A355080 * 2 was previously seen 0 times -> insert directly after. %e A355080 1,1,2,1,3,4,5,6,7,8,9,10 %e A355080 1,1,2,2,1,3,4,5,6,7,8,9,10 %e A355080 * 2 was previously seen once -> insert one later. %e A355080 1,1,2,2,1,3,4,5,6,7,8,9,10 %e A355080 1,1,2,2,1,2,3,4,5,6,7,8,9,10 %e A355080 * 1 was previously seen twice -> insert two later. %e A355080 1,1,2,2,1,2,3,4,5,6,7,8,9,10 %e A355080 1,1,2,2,1,2,3,1,4,5,6,7,8,9,10 %e A355080 . %e A355080 This sequence written as an irregular triangle: %e A355080 * * %e A355080 1, 1 * %e A355080 2, 2, 1, 2 %e A355080 3, 3, 1, 3, 2 * %e A355080 4, 4, 3, 4, 1, 2, 4, 3 %e A355080 5, 5, 1, 5, 4, 2, 5, 3 * %e A355080 6, 6, 4, 6, 5, 1, 6, 2, 3, 5, 6, 4 %e A355080 Each column below an asterisk shows a linear progression. %o A355080 (MATLAB) %o A355080 function a = A355080( max_n ) %o A355080 a = 1:max_n; %o A355080 for n = 1:max_n %o A355080 j = length(find(a(1:n) == a(n))); %o A355080 a = [a(1:n+j-1) a(n) a(n+j:end)]; %o A355080 end %o A355080 a = a(1:max_n); %o A355080 end %Y A355080 Cf. A000124, A354223. %K A355080 nonn,hear %O A355080 1,3 %A A355080 _Thomas Scheuerle_, Jun 18 2022