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.

A353849 Number of distinct positive run-sums of the n-th composition in standard order.

This page as a plain text file.
%I A353849 #9 May 31 2022 22:26:37
%S A353849 0,1,1,1,1,2,2,1,1,2,1,1,2,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,
%T A353849 2,2,1,3,3,1,2,3,1,2,3,2,1,2,2,2,3,3,3,2,2,3,2,3,2,1,1,3,2,1,1,2,2,2,
%U A353849 2,3,3,2,2,2,2,2,2,3,2,2,2,3,2,2,2,2,3
%N A353849 Number of distinct positive run-sums of the n-th composition in standard order.
%C A353849 Every sequence can be uniquely split into a sequence of non-overlapping runs. For example, the runs of (2,2,1,1,1,3,2,2) are ((2,2),(1,1,1),(3),(2,2)), with sums (4,3,3,4).
%C A353849 The k-th composition in standard order (graded reverse-lexicographic, 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. This gives a bijective correspondence between nonnegative integers and integer compositions.
%H A353849 Mathematics Stack Exchange, <a href="https://math.stackexchange.com/q/87559">What is a sequence run? (answered 2011-12-01)</a>
%e A353849 Composition 462903 in standard order is (1,1,4,7,1,2,1,1,1), with run-sums (2,4,7,1,2,3), of which a(462903) = 5 are distinct.
%t A353849 stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
%t A353849 Table[Length[Union[Total/@Split[stc[n]]]],{n,0,100}]
%Y A353849 Counting repeated runs also gives A124767.
%Y A353849 Positions of first appearances are A246534.
%Y A353849 For distinct runs instead of run-sums we have A351014 (firsts A351015).
%Y A353849 A version for partitions is A353835, weak A353861.
%Y A353849 Positions of 1's are A353848, counted by A353851.
%Y A353849 The version for binary expansion is A353929 (firsts A353930).
%Y A353849 The run-sums themselves are listed by A353932, with A353849 distinct terms.
%Y A353849 For distinct run-lengths instead of run-sums we have A354579.
%Y A353849 A005811 counts runs in binary expansion.
%Y A353849 A066099 lists compositions in standard order.
%Y A353849 A165413 counts distinct run-lengths in binary expansion.
%Y A353849 A297770 counts distinct runs in binary expansion, firsts A350952.
%Y A353849 A353847 represents the run-sum transformation for compositions.
%Y A353849 A353853-A353859 pertain to composition run-sum trajectory.
%Y A353849 Distinct runs: A032020, A175413, A351013, A351018, A329739, A351290.
%Y A353849 Selected statistics of standard compositions:
%Y A353849 - Length is A000120.
%Y A353849 - Sum is A070939.
%Y A353849 - Heinz number is A333219.
%Y A353849 - Number of distinct parts is A334028.
%Y A353849 Selected classes of standard compositions:
%Y A353849 - Partitions are A114994, strict A333256.
%Y A353849 - Multisets are A225620, strict A333255.
%Y A353849 - Strict compositions are A233564.
%Y A353849 - Constant compositions are A272919.
%Y A353849 Cf. A003242, A044813, A071625, A238279, A329738, A333381, A333489, A333755, A353744, A353832, A353850, A353852, A353866.
%K A353849 nonn
%O A353849 0,6
%A A353849 _Gus Wiseman_, May 30 2022