0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 1, 3, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 1, 1, 1, 1, 2, 4, 0, 0, 0, 1, 1, 0, 0, 2, 0, 0, 2, 2, 0, 0, 1, 3, 0, 0, 0, 1, 0, 1, 0, 2, 1, 1, 2, 2, 2, 2, 3, 5, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 1, 1, 0, 0, 1, 3, 0, 0, 0, 1, 1, 2, 1, 3, 0, 0, 1, 1, 1, 1, 2, 4, 0, 0, 0, 1, 1, 0, 0, 2, 0
Offset: 0
A124766
Number of monotonically increasing runs for compositions in standard order.
Original entry on oeis.org
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, 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, 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
Offset: 0
Composition number 11 is 2,1,1; the increasing runs are 2; 1,1; so a(11) = 2.
The table starts:
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 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
Compositions of n with k strict descents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766 (this sequence).
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],#1<=#2&]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A124768
Number of strictly increasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 2, 1, 2, 1, 3, 1, 2, 2, 3, 1, 2, 2, 4, 1, 2, 2, 3, 1, 3, 2, 4, 1, 2, 2, 3, 2, 3, 3, 5, 1, 2, 2, 3, 2, 3, 2, 4, 1, 2, 3, 4, 2, 3, 3, 5, 1, 2, 2, 3, 1, 3, 2, 4, 2, 3, 3, 4, 3, 4, 4, 6, 1, 2, 2, 3, 2, 3, 2, 4, 1, 3, 3, 4, 2, 3, 3, 5, 1, 2, 2, 3, 2, 4, 3, 5, 2, 3, 3, 4, 3, 4, 4, 6, 1, 2, 2, 3, 2, 3, 2, 4, 1
Offset: 0
Composition number 11 is 2,1,1; the strictly increasing runs are 2; 1; 1; so a(11) = 3.
The table starts:
0
1
1 2
1 2 1 3
1 2 2 3 1 2 2 4
1 2 2 3 1 3 2 4 1 2 2 3 2 3 3 5
1 2 2 3 2 3 2 4 1 2 3 4 2 3 3 5 1 2 2 3 1 3 2 4 2 3 3 4 3 4 4 6
Compositions of n with k weak descents are
A333213.
All of the following pertain to compositions in standard order (
A066099):
- Partial sums from the right are
A048793.
- Weakly decreasing compositions are
A114994.
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768 (this sequence).
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],Less]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A124765
Number of monotonically decreasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 3, 2, 3
Offset: 0
Composition number 11 is 2,1,1; the decreasing runs are 2,1,1; so a(11) = 1.
The table starts:
0
1
1 1
1 1 2 1
1 1 1 1 2 2 2 1
1 1 1 1 2 1 2 1 2 2 2 2 2 2 2 1
1 1 1 1 1 1 2 1 2 2 1 1 2 2 2 1 2 2 2 2 3 2 3 2 2 2 2 2 2 2 2 1
Compositions of n with k strict ascents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
- Anti-runs are counted by
A333381.
- Adjacent unequal pairs are counted by
A333382.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],GreaterEqual]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A124769
Number of strictly decreasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 2, 1, 1, 2, 3, 1, 1, 2, 2, 2, 2, 3, 4, 1, 1, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 3, 3, 4, 5, 1, 1, 1, 2, 2, 1, 2, 3, 2, 2, 3, 3, 2, 2, 3, 4, 2, 2, 2, 3, 3, 3, 3, 4, 3, 3, 4, 4, 4, 4, 5, 6, 1, 1, 1, 2, 1, 1, 2, 3, 2, 2, 2, 2, 2, 2, 3, 4, 2, 2, 2, 3, 3, 3, 3, 4, 2, 2, 3, 3, 3, 3, 4, 5, 2, 2, 2, 3, 3, 2, 3, 4, 3
Offset: 0
Composition number 11 is 2,1,1; the strictly increasing runs are 2,1; 1; so a(11) = 2.
The table starts:
0
1
1 2
1 1 2 3
1 1 2 2 2 2 3 4
1 1 1 2 2 2 2 3 2 2 3 3 3 3 4 5
1 1 1 2 2 1 2 3 2 2 3 3 2 2 3 4 2 2 2 3 3 3 3 4 3 3 4 4 4 4 5 6
Compositions of n with k weak ascents are
A333213.
All of the following pertain to compositions in standard order (
A066099):
- Partial sums from the right are
A048793 (triangle).
- Weakly decreasing compositions are
A114994.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769 (this sequence).
- Reversed initial intervals
A164894.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],Greater]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A124760
Number of rises for compositions in standard order.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 2, 1, 2
Offset: 0
Composition number 11 is 2,1,1; 2>=1>=1, so a(11) = 0.
The table starts:
0
0
0 0
0 0 1 0
0 0 0 0 1 1 1 0
0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0
0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 0 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 0
Compositions of n with k strict ascents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
- Anti-runs are counted by
A333381.
- Adjacent unequal pairs are counted by
A333382.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Select[Partition[stc[n],2,1],Less@@#&]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
-
A066099row(n) = {my(v=vector(n), j=0, k=0); while(n>0, k++; if(n%2==1, v[j++]=k; k=0); n\=2); vector(j, i, v[j-i+1]); } \\ Returns empty for n=0. - From code of Franklin T. Adams-Watters in A066099.
A124760(n) = { my(v=A066099row(n), r=0); for(i=2,length(v),r += (v[i]>v[i-1])); (r); }; \\ Antti Karttunen, Jul 09 2017
A124761
Number of falls for compositions in standard order.
Original entry on oeis.org
0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 2, 1, 1, 0, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 2, 1, 1, 0, 1, 1, 2, 1, 2, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 1, 1, 0, 2, 1, 1, 0
Offset: 0
Composition number 11 is 2,1,1; 2>1<=1, so a(11) = 1.
The table starts:
0
0
0 0
0 1 0 0
0 1 0 1 0 1 0 0
0 1 1 1 0 1 1 1 0 1 0 1 0 1 0 0
0 1 1 1 0 2 1 1 0 1 0 1 1 2 1 1 0 1 1 1 0 1 1 1 0 1 0 1 0 1 0 0
Compositions of n with k strict descents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Select[Partition[stc[n],2,1],Greater@@#&]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A333252
Lengths of maximal strictly decreasing subsequences in the sequence of prime gaps (A001223).
Original entry on oeis.org
1, 1, 1, 2, 2, 1, 2, 3, 1, 1, 2, 3, 2, 1, 3, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 1, 2, 3, 1, 3, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 1, 3, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 3, 3, 1, 1, 2, 2, 1, 1, 2, 3, 2, 3, 2, 2, 2, 2, 2, 1, 3, 1, 3, 1, 2, 1
Offset: 1
The prime gaps split into the following strictly decreasing subsequences: (1), (2), (2), (4,2), (4,2), (4), (6,2), (6,4,2), (4), (6), (6,2), (6,4,2), (6,4), (6), (8,4,2), (4,2), (4), (14,4), (6,2), (10,2), (6), (6,4), (6), ...
The weakly decreasing version is
A333212.
The weakly increasing version is
A333215.
First differences of
A333230 (if the first term is 0).
The strictly increasing version is
A333253.
Strictly decreasing runs of compositions in standard order are
A124769.
Positions of strict descents in the sequence of prime gaps are
A258026.
A124763
Number of non-rises (levels or falls) for compositions in standard order.
Original entry on oeis.org
0, 0, 0, 1, 0, 1, 0, 2, 0, 1, 1, 2, 0, 1, 1, 3, 0, 1, 1, 2, 0, 2, 1, 3, 0, 1, 1, 2, 1, 2, 2, 4, 0, 1, 1, 2, 1, 2, 1, 3, 0, 1, 2, 3, 1, 2, 2, 4, 0, 1, 1, 2, 0, 2, 1, 3, 1, 2, 2, 3, 2, 3, 3, 5, 0, 1, 1, 2, 1, 2, 1, 3, 0, 2, 2, 3, 1, 2, 2, 4, 0, 1, 1, 2, 1, 3, 2, 4, 1, 2, 2, 3, 2, 3, 3, 5, 0, 1, 1, 2, 1, 2, 1, 3, 0
Offset: 0
Composition number 11 is 2,1,1; 2>=1>=1, so a(11) = 2.
The table starts:
0
0
0 1
0 1 0 2
0 1 1 2 0 1 1 3
0 1 1 2 0 2 1 3 0 1 1 2 1 2 2 4
0 1 1 2 1 2 1 3 0 1 2 3 1 2 2 4 0 1 1 2 0 2 1 3 1 2 2 3 2 3 3 5
Compositions of n with k weak descents are
A333213.
All of the following pertain to compositions in standard order (
A066099):
- Partial sums from the right are
A048793.
- Weakly decreasing compositions are
A114994.
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Select[Partition[stc[n],2,1],GreaterEqual@@#&]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
Comments