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 A332871 #15 Dec 31 2020 19:17:10 %S A332871 0,0,0,0,1,4,8,24,55,128,282,625,1336,2855,6000,12551,26022,53744, %T A332871 110361,225914,460756,937413,1902370,3853445,7791647,15732468, %U A332871 31725191,63907437,128613224,258626480,519700800,1043690354,2094882574,4202903667,8428794336,16897836060 %N A332871 Number of compositions of n whose run-lengths are not weakly increasing. %C A332871 A composition of n is a finite sequence of positive integers summing to n. %C A332871 Also compositions whose run-lengths are not weakly decreasing. %H A332871 Andrew Howroyd, <a href="/A332871/b332871.txt">Table of n, a(n) for n = 0..1000</a> %F A332871 a(n) = 2^(n - 1) - A332836(n). %e A332871 The a(4) = 1 through a(6) = 8 compositions: %e A332871 (112) (113) (114) %e A332871 (221) (1113) %e A332871 (1112) (1131) %e A332871 (1121) (1221) %e A332871 (2112) %e A332871 (11112) %e A332871 (11121) %e A332871 (11211) %e A332871 For example, the composition (2,1,1,2) has run-lengths (1,2,1), which are not weakly increasing, so (2,1,1,2) is counted under a(6). %t A332871 Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!LessEqual@@Length/@Split[#]&]],{n,0,10}] %Y A332871 The version for the compositions themselves (not run-lengths) is A056823. %Y A332871 The version for unsorted prime signature is A112769, with dual A071365. %Y A332871 The case without weakly decreasing run-lengths either is A332833. %Y A332871 The complement is counted by A332836. %Y A332871 Compositions that are not unimodal are A115981. %Y A332871 Compositions with equal run-lengths are A329738. %Y A332871 Compositions whose run-lengths are not unimodal are A332727. %Y A332871 Cf. A001523, A072704, A100883, A181819, A329744, A329766, A332641, A332669, A332726, A332745, A332746, A332834, A332835. %K A332871 nonn %O A332871 0,6 %A A332871 _Gus Wiseman_, Feb 29 2020 %E A332871 Terms a(21) and beyond from _Andrew Howroyd_, Dec 30 2020