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 A248141 #12 Feb 03 2015 17:16:47 %S A248141 1,1,2,1,2,1,2,3,1,2,2,3,1,2,3,1,2,3,4,1,2,2,3,3,4,1,2,3,2,3,4,1,2,3, %T A248141 4,1,2,3,4,5,1,2,2,3,3,4,4,5,1,2,3,2,3,4,3,4,5,1,2,3,4,2,3,4,5,1,2,3, %U A248141 4,5,1,2,3,4,5,6,1,2,2,3,3,4,4,5,5,6 %N A248141 Table read by rows: n-th row contains all subsets of consecutive numbers of 1..n. %C A248141 A000292(n) = length of n-th row, whereas A000217(n) = number of all consecutive subsets of numbers 1..n; %C A248141 A248147(n,k) = A000040(T(n,k)), 1 <= k <= A000292(n). %H A248141 Reinhard Zumkeller, <a href="/A248141/b248141.txt">Rows n = 1..20 of triangle, flattened</a> %e A248141 . 1: 1 %e A248141 . 2: 1,2,1,2 %e A248141 . 3: 1,2,3,1,2,2,3,1,2,3 %e A248141 . 4: 1,2,3,4,1,2,2,3,3,4,1,2,3,2,3,4,1,2,3,4 %e A248141 . 5: 1,2,3,4,5,1,2,2,3,3,4,4,5,1,2,3,2,3,4,3,4,5,1,2,3,4,2,3,4,5,1,2,3,4,5 %e A248141 rows concatenated from: %e A248141 . 1: [1] %e A248141 . 2: [1] [2] [1,2] %e A248141 . 3: [1] [2] [3] [1,2] [2,3] [1,2,3] %e A248141 . 4: [1] [2] [3] [4] [1,2] [2,3] [3,4] [1,2,3] [2,3,4] [1,2,3,4] %e A248141 . 5: [1] [2] [3] [4] [5] [1,2] [2,3] [3,4] [4,5] [1,2,3] [2,3,4] ... %t A248141 Flatten[Table[Flatten[Table[Partition[Range[n],i,1],{i,n}]],{n,6}]] (* _Harvey P. Dale_, Feb 03 2015 *) %o A248141 (Haskell) %o A248141 import Data.List (group) %o A248141 a248141 n k = a248141_tabf !! (n-1) !! (k-1) %o A248141 a248141_row n = a248141_tabf !! (n-1) %o A248141 a248141_tabf = map concat usss where %o A248141 usss = iterate f [[1]] where %o A248141 f vss = group [1 .. last (last vss) + 1] ++ %o A248141 map (\ws -> ws ++ [last ws + 1]) vss %Y A248141 Cf. A000292 (row lengths), A000217, A248147. %K A248141 nonn,tabf %O A248141 1,3 %A A248141 _Reinhard Zumkeller_, Oct 02 2014