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
A333219
Heinz number of the n-th composition in standard order.
Original entry on oeis.org
1, 2, 3, 4, 5, 6, 6, 8, 7, 10, 9, 12, 10, 12, 12, 16, 11, 14, 15, 20, 15, 18, 18, 24, 14, 20, 18, 24, 20, 24, 24, 32, 13, 22, 21, 28, 25, 30, 30, 40, 21, 30, 27, 36, 30, 36, 36, 48, 22, 28, 30, 40, 30, 36, 36, 48, 28, 40, 36, 48, 40, 48, 48, 64, 17, 26, 33, 44
Offset: 1
The sequence of terms together with their prime indices begins:
1: {} 15: {2,3} 25: {3,3}
2: {1} 20: {1,1,3} 30: {1,2,3}
3: {2} 15: {2,3} 30: {1,2,3}
4: {1,1} 18: {1,2,2} 40: {1,1,1,3}
5: {3} 18: {1,2,2} 21: {2,4}
6: {1,2} 24: {1,1,1,2} 30: {1,2,3}
6: {1,2} 14: {1,4} 27: {2,2,2}
8: {1,1,1} 20: {1,1,3} 36: {1,1,2,2}
7: {4} 18: {1,2,2} 30: {1,2,3}
10: {1,3} 24: {1,1,1,2} 36: {1,1,2,2}
9: {2,2} 20: {1,1,3} 36: {1,1,2,2}
12: {1,1,2} 24: {1,1,1,2} 48: {1,1,1,1,2}
10: {1,3} 24: {1,1,1,2} 22: {1,5}
12: {1,1,2} 32: {1,1,1,1,1} 28: {1,1,4}
12: {1,1,2} 13: {6} 30: {1,2,3}
16: {1,1,1,1} 22: {1,5} 40: {1,1,1,3}
11: {5} 21: {2,4} 30: {1,2,3}
14: {1,4} 28: {1,1,4} 36: {1,1,2,2}
The length of the k-th composition in standard order is
A000120(k).
The sum of the k-th composition in standard order is
A070939(k).
The maximum of the k-th composition in standard order is
A070939(k).
Cf.
A048793,
A056239,
A066099,
A112798,
A114994,
A124767,
A213925,
A225620,
A228351,
A233564,
A272919,
A333218.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Times@@Prime/@stc[n],{n,0,100}]
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 *)
A333382
Number of adjacent unequal parts in the n-th composition in standard-order.
Original entry on oeis.org
0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 2, 1, 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 0, 0, 1, 1, 1, 0, 2, 2, 1, 1, 2, 0, 1, 2, 3, 2, 1, 1, 2, 2, 2, 2, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 3, 2, 1, 1, 2, 2, 2, 1, 1, 2
Offset: 0
The 46th composition in standard order is (2,1,1,2), with maximal runs ((2),(1,1),(2)), so a(46) = 3 - 1 = 2.
Indices of first appearances (not counting 0) are
A113835.
Partitions whose 0-appended first differences are a run are
A007862.
Partitions whose first differences are a run are
A049988.
A triangle counting maximal anti-runs of compositions is
A106356.
A triangle counting maximal runs of compositions is
A238279.
All of the following pertain to compositions in standard order (
A066099):
- 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.
- Strict compositions are ranked by
A233564.
- Constant compositions are ranked by
A272919.
- Normal compositions are ranked by
A333217.
- Anti-runs are counted by
A333381.
Cf.
A000005,
A000120,
A003242,
A029931,
A048793,
A059893,
A070939,
A114994,
A225620,
A228351,
A238424.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Select[Partition[stc[n],2,1],UnsameQ@@#&]],{n,0,100}]
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 *)
A333627
The a(n)-th composition in standard order is the sequence of run-lengths of the n-th composition in standard order.
Original entry on oeis.org
0, 1, 1, 2, 1, 3, 3, 4, 1, 3, 2, 6, 3, 7, 5, 8, 1, 3, 3, 6, 3, 5, 7, 12, 3, 7, 6, 14, 5, 11, 9, 16, 1, 3, 3, 6, 2, 7, 7, 12, 3, 7, 4, 10, 7, 15, 13, 24, 3, 7, 7, 14, 7, 13, 15, 28, 5, 11, 10, 22, 9, 19, 17, 32, 1, 3, 3, 6, 3, 7, 7, 12, 3, 5, 6, 14, 7, 15, 13
Offset: 0
The standard compositions and their run-lengths:
0 ~ () -> () ~ 0
1 ~ (1) -> (1) ~ 1
2 ~ (2) -> (1) ~ 1
3 ~ (11) -> (2) ~ 2
4 ~ (3) -> (1) ~ 1
5 ~ (21) -> (11) ~ 3
6 ~ (12) -> (11) ~ 3
7 ~ (111) -> (3) ~ 4
8 ~ (4) -> (1) ~ 1
9 ~ (31) -> (11) ~ 3
10 ~ (22) -> (2) ~ 2
11 ~ (211) -> (12) ~ 6
12 ~ (13) -> (11) ~ 3
13 ~ (121) -> (111) ~ 7
14 ~ (112) -> (21) ~ 5
15 ~ (1111) -> (4) ~ 8
16 ~ (5) -> (1) ~ 1
17 ~ (41) -> (11) ~ 3
18 ~ (32) -> (11) ~ 3
19 ~ (311) -> (12) ~ 6
Positions of first appearances are
A333630.
All of the following pertain to compositions in standard order (
A066099):
- The partial sums from the right are
A048793.
- Adjacent equal pairs are counted by
A124762.
- Equal runs are counted by
A124767.
- Strict compositions are ranked by
A233564.
- The partial sums from the left are
A272020.
- Constant compositions are ranked by
A272919.
- Normal compositions are ranked by
A333217.
- Anti-runs are counted by
A333381.
- Adjacent unequal pairs are counted by
A333382.
- First appearances of run-resistances are
A333629.
Cf.
A029931,
A098504,
A114994,
A225620,
A228351,
A238279,
A242882,
A318928,
A329744,
A329747,
A333489.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Total[2^(Accumulate[Reverse[Length/@Split[stc[n]]]])]/2,{n,0,30}]
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 *)
Comments