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.

A124766 Number of monotonically increasing runs for compositions in standard order.

This page as a plain text file.
%I A124766 #6 Apr 09 2020 00:55:35
%S A124766 0,1,1,1,1,2,1,1,1,2,1,2,1,2,1,1,1,2,2,2,1,2,2,2,1,2,1,2,1,2,1,1,1,2,
%T A124766 2,2,1,3,2,2,1,2,1,2,2,3,2,2,1,2,2,2,1,2,2,2,1,2,1,2,1,2,1,1,1,2,2,2,
%U A124766 2,3,2,2,1,2,2,3,2,3,2,2,1,2,2,2,1,2,2,2,2,3,2,3,2,3,2,2,1,2,2,2,1,3,2,2,1
%N A124766 Number of monotonically increasing runs for compositions in standard order.
%C A124766 The standard order of compositions is given by A066099.
%C A124766 A composition of n is a finite sequence of positive integers summing to n. 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. a(n) is the number of maximal weakly increasing runs in this composition. Alternatively, a(n) is one plus the number of strict descents in the same composition. For example, the weakly increasing runs of the 1234567th composition are ((3),(2),(1,2,2),(1,2,5),(1,1,1)), so a(1234567) = 5. The 4 strict descents together with the weak ascents are: 3 > 2 > 1 <= 2 <= 2 > 1 <= 2 <= 5 > 1 <= 1 <= 1. - _Gus Wiseman_, Apr 08 2020
%F A124766 a(0) = 0, a(n) = A124761(n) + 1 for n > 0.
%e A124766 Composition number 11 is 2,1,1; the increasing runs are 2; 1,1; so a(11) = 2.
%e A124766 The table starts:
%e A124766   0
%e A124766   1
%e A124766   1 1
%e A124766   1 2 1 1
%e A124766   1 2 1 2 1 2 1 1
%e A124766   1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1
%e A124766   1 2 2 2 1 3 2 2 1 2 1 2 2 3 2 2 1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1
%t A124766 stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
%t A124766 Table[Length[Split[stc[n],#1<=#2&]],{n,0,100}] (* _Gus Wiseman_, Apr 08 2020 *)
%Y A124766 Cf. A066099, A124761, A011782 (row lengths).
%Y A124766 Compositions of n with k strict descents are A238343.
%Y A124766 All of the following pertain to compositions in standard order (A066099):
%Y A124766 - Length is A000120.
%Y A124766 - Sum is A070939.
%Y A124766 - Weakly decreasing compositions are A114994.
%Y A124766 - Adjacent equal pairs are counted by A124762.
%Y A124766 - Weakly decreasing runs are counted by A124765.
%Y A124766 - Weakly increasing runs are counted by A124766 (this sequence).
%Y A124766 - Equal runs are counted by A124767.
%Y A124766 - Strictly increasing runs are counted by A124768.
%Y A124766 - Strictly decreasing runs are counted by A124769.
%Y A124766 - Weakly increasing compositions are A225620.
%Y A124766 - Reverse is A228351 (triangle).
%Y A124766 - Strict compositions are A233564.
%Y A124766 - Initial intervals are A246534.
%Y A124766 - Constant compositions are A272919.
%Y A124766 - Normal compositions are A333217.
%Y A124766 - Permutations are A333218.
%Y A124766 - Strictly decreasing compositions are A333255.
%Y A124766 - Strictly increasing compositions are A333256.
%Y A124766 - Runs-resistance is A333628.
%Y A124766 Cf. A124760, A124763, A124764, A333213, A333220, A333379.
%K A124766 easy,nonn,tabf
%O A124766 0,6
%A A124766 _Franklin T. Adams-Watters_, Nov 06 2006