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 A332667 #10 Feb 25 2020 18:34:57 %S A332667 0,1,2,4,5,3,10,11,6,7,20,21,12,13,8,35,36,22,23,14,9,56,57,37,38,24, %T A332667 15,16,84,85,58,59,39,25,26,17,120,121,86,87,60,40,41,27,18,165,166, %U A332667 122,123,88,61,62,42,28,19,220,221,167,168,124,89,90,63,43,29,30 %N A332667 Permutation of N = {0, 1, 2, ...} induced by the enumeration of N X N in A332662. %C A332667 Motivated by the question how a sequence of regular integer triangles can be stored in linear memory (see A332662). %e A332667 a(n) can be seen as the triangle read by rows: %e A332667 [0] 0; %e A332667 [1] 1, 2; %e A332667 [2] 4, 5, 3; %e A332667 [3] 10, 11, 6, 7; %e A332667 [4] 20, 21, 12, 13, 8; %e A332667 [5] 35, 36, 22, 23, 14, 9; %e A332667 [6] 56, 57, 37, 38, 24, 15, 16; %e A332667 [7] 84, 85, 58, 59, 39, 25, 26, 17; %e A332667 ... %e A332667 a(n) can also be seen as the rectangular array read by upwards antidiagonals (with flat rows): %e A332667 (A) [ 0], [ 2, 3], [ 7, 8, 9], [16, 17, 18, 19], [30, 31, 32, 33, 34],... %e A332667 (B) [ 1], [ 5, 6], [13, 14, 15], [26, 27, 28, 29], ... %e A332667 (C) [ 4], [11, 12], [23, 24, 25], ... %e A332667 (D) [10], [21, 22], ... %e A332667 (E) [20], ... %e A332667 ... %p A332667 F := L -> ListTools:-Flatten(L): b := n -> floor((sqrt(8*n+1)-1)/2): %p A332667 S := (n, k) -> [seq(binomial(n+k+2,3) + binomial(k+1,2)+j, j=0..k)]: %p A332667 A332667 := (n, k) -> F([seq(S(n-k,j), j=0..b(k))])[k+1]: %p A332667 seq(seq(A332667(n, k), k=0..n), n=0..10); %Y A332667 Cf. A332662, A000292 (first column), A332699 (main diagonal). %K A332667 nonn,tabl %O A332667 0,3 %A A332667 _Peter Luschny_, Feb 19 2020