%I #16 Nov 11 2022 09:53:29
%S 1,1,1,2,1,2,3,4,1,2,3,5,4,6,7,8,1,2,3,5,9,4,6,10,7,11,8,13,12,14,15,
%T 16,1,2,3,5,9,17,4,6,10,18,7,11,19,8,13,22,12,20,14,23,15,25,16,27,21,
%U 24,26,29,28,30,31,32,1,2,3,5,9,17,33,4,6,10,18,34
%N Inventory sequence, second version: record where the 1's, 2's, etc. are located starting with a(1) = 1, a(2) = 1.
%C Essentially the same as A358066, except that at stage k we record where all the numbers from 1 to 2^k have appeared in the sequence in earlier stages. (In A358066 we only look at where the numbers from 1 to k have appeared.)
%C This means that when the sequence is displayed as a triangle, the row corresponding to stage k >= 1 is a permutation of the numbers from 1 to 2^k.
%F a(n) = A356784(n-1) + 1. - _Rémy Sigrist_, Nov 08 2022
%e As an irregular triangle, the sequence begins:
%e 1, 1,
%e 1, 2,
%e 1, 2, 3, 4,
%e 1, 2, 3, 5, 4, 6, 7, 8,
%e 1, 2, 3, 5, 9, 4, 6, 10, 7, 11, 8, 13, 12, 14, 15, 16,
%e 1, 2, 3, 5, 9, 17, 4, 6, 10, 18, 7, 11, 19, 8, 13, 22, 12, 20, 14, 23, 15, 25, 16, 27, 21, 24, 26, 29, 28, 30, 31, 32,
%e ...
%Y Cf. A342585, A356784, A358066.
%K nonn,tabf
%O 1,4
%A _Ctibor O. Zizka_, Oct 29 2022, edited by _N. J. A. Sloane_, Nov 07 2022. (Because of a missing term in the initial submission, the definition could be interpreted in two ways: A358066 was the first interpretation, this is the second.)
%E More terms from _Rémy Sigrist_, Nov 08 2022