cp's OEIS Frontend

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.

A339178 Irregular triangle read by rows in which row n lists the compositions (ordered partitions) of n into distinct parts in reverse lexicographic order.

This page as a plain text file.
%I A339178 #4 Nov 26 2020 09:17:06
%S A339178 1,2,3,2,1,1,2,4,3,1,1,3,5,4,1,3,2,2,3,1,4,6,5,1,4,2,3,2,1,3,1,2,2,4,
%T A339178 2,3,1,2,1,3,1,5,1,3,2,1,2,3,7,6,1,5,2,4,3,4,2,1,4,1,2,3,4,2,5,2,4,1,
%U A339178 2,1,4,1,6,1,4,2,1,2,4,8,7,1,6,2,5,3,5,2,1,5,1,2,4,3,1,4,1,3,3,5,3,4,1,3,1,4,2,6,2,5,1,2,1,5,1,7,1,5,2,1,4,3,1,3,4,1,2,5
%N A339178 Irregular triangle read by rows in which row n lists the compositions (ordered partitions) of n into distinct parts in reverse lexicographic order.
%H A339178 <a href="/index/Com#comp">Index entries for sequences related to compositions</a>
%e A339178 Triangle begins:
%e A339178 [1],
%e A339178 [2],
%e A339178 [3], [2, 1], [1, 2],
%e A339178 [4], [3, 1], [1, 3],
%e A339178 [5], [4, 1], [3, 2], [2, 3], [1, 4],
%e A339178 ...
%t A339178 Table[Sort[Join @@ Permutations /@ Select[IntegerPartitions[n], UnsameQ @@ # &], OrderedQ[PadRight[{#2, #1}]] &], {n, 8}] // Flatten
%Y A339178 Cf. A026793, A066099, A097910 (row lengths), A118457, A228369, A246688, A304797 (row sums).
%K A339178 nonn,tabf
%O A339178 1,2
%A A339178 _Ilya Gutkovskiy_, Nov 26 2020