login
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.
2
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, 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, 5, 1, 9, 2, 6, 8, 9, 7, 3, 4, 5, 9, 10, 10, 8, 10, 1, 7, 10, 6
OFFSET
1,3
COMMENTS
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.
We could use the term ordinal instead of number here, as the numerical value itself is not important, only the ordering.
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.
A mysterious constant C:
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, ... .
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.
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?
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.
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.
LINKS
Thomas Scheuerle, y = k - (1/C)*(x-0.283)^2, where k is the least k such that a(k) = x. For C we chose sqrt(2/u) with u = 1.45... (A070769).
Thomas Scheuerle, y = k - (1/C)*(x-1.275)^2, where k is such that a(k) = 1 for the x-th appearance. For C we chose sqrt(2/u) with u = 1.45... (A070769).
EXAMPLE
Step-by-step development of the sequence is as follows; the asterisk marks the actual term that will be processed:
* 1 was previously seen 0 times -> insert directly after.
1,2,3,4,5,6,7,8,9,10
1,1,2,3,4,5,6,7,8,9,10
* 1 was previously seen once -> insert one later.
1,1,2,3,4,5,6,7,8,9,10
1,1,2,1,3,4,5,6,7,8,9,10
* 2 was previously seen 0 times -> insert directly after.
1,1,2,1,3,4,5,6,7,8,9,10
1,1,2,2,1,3,4,5,6,7,8,9,10
* 2 was previously seen once -> insert one later.
1,1,2,2,1,3,4,5,6,7,8,9,10
1,1,2,2,1,2,3,4,5,6,7,8,9,10
* 1 was previously seen twice -> insert two later.
1,1,2,2,1,2,3,4,5,6,7,8,9,10
1,1,2,2,1,2,3,1,4,5,6,7,8,9,10
.
This sequence written as an irregular triangle:
* *
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, 2, 3, 5, 6, 4
Each column below an asterisk shows a linear progression.
PROG
(MATLAB)
function a = A355080( max_n )
a = 1:max_n;
for n = 1:max_n
j = length(find(a(1:n) == a(n)));
a = [a(1:n+j-1) a(n) a(n+j:end)];
end
a = a(1:max_n);
end
CROSSREFS
Sequence in context: A230494 A368175 A106580 * A165915 A269783 A043276
KEYWORD
nonn,hear
AUTHOR
Thomas Scheuerle, Jun 18 2022
STATUS
approved