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 A358066 #46 Nov 08 2022 09:44:13 %S A358066 1,1,1,2,1,2,3,4,1,2,3,5,4,6,7,1,2,3,5,9,4,6,10,7,11,8,13,1,2,3,5,9, %T A358066 16,4,6,10,17,7,11,18,8,13,21,12,19,1,2,3,5,9,16,28,4,6,10,17,29,7,11, %U A358066 18,30,8,13,21,34,12,19,31,14,22,35,1,2,3,5,9,16,28,46,4,6,10,17,29,47,7,11,18,30,48 %N A358066 Inventory sequence: record where the 1's, 2's, etc. are located starting with a(1) = 1, a(2) = 1 (see example). %e A358066 At stage n >= 1 we only look at the numbers 1 up to n, and ignore numbers bigger than n. %e A358066 Stage 0: start with a(1) = 1, a(2) = 1. %e A358066 Stage 1: we see 1's at 1,2, so we adjoin 1,2, getting 1,1, 1,2. %e A358066 Stage 2: we see 1's at 1,2,3, and 2's at 4, so we adjoin 1,2,3,4, getting 1,1,1,2, 1,2,3,4. %e A358066 Stage 3: we see 1's at 1,2,3,5, 2's at 4,6 and 3's at 7, so we adjoin 1,2,3,5,4,6,7, getting 1,1,1,2,1,2,3,4, 1,2,3,5,4,6,7. %e A358066 Stage 4: we see 1's at 1,2,3,5,9, 2's at 4,6,10, 3's at 7,11, 4's at 8,13, so we adjoin 1,2, ..., 8,13 and so on. %e A358066 We obtain an irregular triangle by writing the results of the stages as separate rows: %e A358066 1, 1, %e A358066 1, 2, %e A358066 1, 2, 3, 4, %e A358066 1, 2, 3, 5, 4, 6, 7, %e A358066 1, 2, 3, 5, 9, 4, 6, 10, 7, 11, 8, 13, %e A358066 1, 2, 3, 5, 9, 16, 4, 6, 10, 17, 7, 11, 18, 8, 13, 21, 12, 19, %e A358066 1, 2, 3, 5, 9, 16, 28, 4, 6, 10, 17, 29, 7, 11, 18, 30, 8, 13, 21, 34, 12, 19, 31, 14, 22, 35, %e A358066 ... (_N. J. A. Sloane_, Nov 07 2022) %o A358066 (Python) %o A358066 terms = [1, 1] %o A358066 for i in range(1,11): %o A358066 new_terms = [] %o A358066 for j in range(1, i+1): %o A358066 for k in range(len(terms)): %o A358066 if terms[k] == j: new_terms.append(k+1) %o A358066 terms.extend(new_terms) %o A358066 print(terms) # _Gleb Ivanov_, Nov 01 2022 %Y A358066 See A357443 for another version. %Y A358066 Cf. A030717, A055187, A217780, A342585, A357317, A356784. %K A358066 nonn,tabf %O A358066 1,4 %A A358066 _Ctibor O. Zizka_, Oct 29 2022