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 A333224 #6 Mar 18 2020 23:02:22 %S A333224 0,1,1,2,1,3,3,3,1,3,2,4,3,4,4,4,1,3,3,5,3,5,4,5,3,4,5,5,5,5,5,5,1,3, %T A333224 3,5,2,5,5,6,3,6,3,6,5,6,5,6,3,4,6,6,5,6,6,6,5,6,6,6,6,6,6,6,1,3,3,5, %U A333224 3,6,6,7,3,5,5,7,4,6,6,7,3,6,4,7,5,7,6 %N A333224 Number of distinct positive consecutive subsequence-sums of the k-th composition in standard order. %C A333224 The k-th composition in standard order (row k of A066099) is obtained by taking the set of positions of 1's in the reversed binary expansion of k, prepending 0, taking first differences, and reversing again. %F A333224 a(n) = A333257(n) - 1. %e A333224 The composition (4,3,1,2) has positive subsequence-sums 1, 2, 3, 4, 6, 7, 8, 10, so a(550) = 8. %t A333224 stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; %t A333224 Table[Length[Union[ReplaceList[stc[n],{___,s__,___}:>Plus[s]]]],{n,0,100}] %Y A333224 Dominated by A124770. %Y A333224 Compositions where every subinterval has a different sum are counted by A169942 and A325677 and ranked by A333222. The case of partitions is counted by A325768 and ranked by A325779. %Y A333224 Positive subset-sums of partitions are counted by A276024 and A299701. %Y A333224 Knapsack partitions are counted by A108917 and A325592 and ranked by A299702. %Y A333224 Strict knapsack partitions are counted by A275972 and ranked by A059519 and A301899. %Y A333224 Knapsack compositions are counted by A325676 and A325687 and ranked by A333223. The case of partitions is counted by A325769 and ranked by A325778, for which the number of distinct consecutive subsequences is given by A325770. %Y A333224 Allowing empty subsequences gives A333257. %Y A333224 Cf. A000120, A003022, A029931, A048793, A066099, A070939, A103295, A124767, A143823, A295235, A325680, A333217. %K A333224 nonn %O A333224 0,4 %A A333224 _Gus Wiseman_, Mar 18 2020