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 A345236 #58 Jan 05 2022 05:20:34 %S A345236 0,1,1,0,1,1,1,2,1,0,0,1,0,1,1,0,2,1,0,3,1,1,0,1,1,1,1,1,2,1,1,3,1,1, %T A345236 4,1,2,0,1,2,1,1,2,2,1,2,3,1,2,4,1,2,5,1,0,0,0,1,0,0,1,1,0,0,2,1,0,0, %U A345236 3,1,0,0,4,1,0,0,5,1,0,0,6,1,0,1,0,1,0,1,1,1,0,1,2,1,0,1,3 %N A345236 Triangle read by rows: The rightmost column contains the terms of A002262 starting at A002262(1). Each time a column's value is zero (except for a(0)), the column to its left starts at the next term in A002262, or if that column does not yet exist, it starts at A002262(2). %C A345236 The first row with k columns is the A006893(k)-th. The last row with k columns comprises the first k terms of A006893. %H A345236 John-Vincent Saddic, <a href="/A345236/a345236.java.txt">Java code to print the n-th row of the triangle</a> %F A345236 To calculate the values of the n-th row: %F A345236 c(m) = floor((sqrt(9 + 8*m) - 3)/2) = A052146(m+1). %F A345236 r(m) = m - (c(m)^2)/2 - 3*c(m)/2 = A002262(m+1). %F A345236 The last value of row m is r(m), the second to last value is r(c(m)), the third to last value is r(c(c(m))), and so on until c(m) equals 0. %e A345236 Triangle begins as: %e A345236 0 %e A345236 1 %e A345236 1 0 %e A345236 1 1 %e A345236 1 2 %e A345236 1 0 0 %e A345236 1 0 1 %e A345236 1 0 2 %e A345236 1 0 3 %e A345236 1 1 0 %o A345236 (Java) See Links. Rows are printed with values concatenated. Values greater than 10 are represented between parentheses, e.g., row 100 is 113(10). %Y A345236 Cf. A002262, A052146. %Y A345236 First row with n values: A006893(n). %K A345236 nonn,tabf %O A345236 0,8 %A A345236 _John-Vincent Saddic_, Jul 14 2021