Identifier
-
Mp00094:
Integer compositions
—to binary word⟶
Binary words
Mp00178: Binary words —to composition⟶ Integer compositions
St000806: Integer compositions ⟶ ℤ
Values
[1] => 1 => [1,1] => 3
[1,1] => 11 => [1,1,1] => 4
[2] => 10 => [1,2] => 4
[1,1,1] => 111 => [1,1,1,1] => 5
[1,2] => 110 => [1,1,2] => 5
[2,1] => 101 => [1,2,1] => 5
[3] => 100 => [1,3] => 5
[1,1,1,1] => 1111 => [1,1,1,1,1] => 6
[1,1,2] => 1110 => [1,1,1,2] => 6
[1,2,1] => 1101 => [1,1,2,1] => 6
[1,3] => 1100 => [1,1,3] => 6
[2,1,1] => 1011 => [1,2,1,1] => 6
[2,2] => 1010 => [1,2,2] => 5
[3,1] => 1001 => [1,3,1] => 6
[4] => 1000 => [1,4] => 6
[1,1,1,1,1] => 11111 => [1,1,1,1,1,1] => 7
[1,1,1,2] => 11110 => [1,1,1,1,2] => 7
[1,1,2,1] => 11101 => [1,1,1,2,1] => 7
[1,1,3] => 11100 => [1,1,1,3] => 7
[1,2,1,1] => 11011 => [1,1,2,1,1] => 7
[1,2,2] => 11010 => [1,1,2,2] => 6
[1,3,1] => 11001 => [1,1,3,1] => 7
[1,4] => 11000 => [1,1,4] => 7
[2,1,1,1] => 10111 => [1,2,1,1,1] => 7
[2,1,2] => 10110 => [1,2,1,2] => 7
[2,2,1] => 10101 => [1,2,2,1] => 6
[2,3] => 10100 => [1,2,3] => 6
[3,1,1] => 10011 => [1,3,1,1] => 7
[3,2] => 10010 => [1,3,2] => 6
[4,1] => 10001 => [1,4,1] => 7
[5] => 10000 => [1,5] => 7
[1,1,1,1,1,1] => 111111 => [1,1,1,1,1,1,1] => 8
[1,1,1,1,2] => 111110 => [1,1,1,1,1,2] => 8
[1,1,1,2,1] => 111101 => [1,1,1,1,2,1] => 8
[1,1,1,3] => 111100 => [1,1,1,1,3] => 8
[1,1,2,1,1] => 111011 => [1,1,1,2,1,1] => 8
[1,1,2,2] => 111010 => [1,1,1,2,2] => 7
[1,1,3,1] => 111001 => [1,1,1,3,1] => 8
[1,1,4] => 111000 => [1,1,1,4] => 8
[1,2,1,1,1] => 110111 => [1,1,2,1,1,1] => 8
[1,2,1,2] => 110110 => [1,1,2,1,2] => 8
[1,2,2,1] => 110101 => [1,1,2,2,1] => 7
[1,2,3] => 110100 => [1,1,2,3] => 7
[1,3,1,1] => 110011 => [1,1,3,1,1] => 8
[1,3,2] => 110010 => [1,1,3,2] => 7
[1,4,1] => 110001 => [1,1,4,1] => 8
[1,5] => 110000 => [1,1,5] => 8
[2,1,1,1,1] => 101111 => [1,2,1,1,1,1] => 8
[2,1,1,2] => 101110 => [1,2,1,1,2] => 8
[2,1,2,1] => 101101 => [1,2,1,2,1] => 8
[2,1,3] => 101100 => [1,2,1,3] => 8
[2,2,1,1] => 101011 => [1,2,2,1,1] => 7
[2,2,2] => 101010 => [1,2,2,2] => 6
[2,3,1] => 101001 => [1,2,3,1] => 7
[2,4] => 101000 => [1,2,4] => 7
[3,1,1,1] => 100111 => [1,3,1,1,1] => 8
[3,1,2] => 100110 => [1,3,1,2] => 8
[3,2,1] => 100101 => [1,3,2,1] => 7
[3,3] => 100100 => [1,3,3] => 6
[4,1,1] => 100011 => [1,4,1,1] => 8
[4,2] => 100010 => [1,4,2] => 7
[5,1] => 100001 => [1,5,1] => 8
[6] => 100000 => [1,6] => 8
[1,1,1,1,1,1,1] => 1111111 => [1,1,1,1,1,1,1,1] => 9
[1,1,1,1,1,2] => 1111110 => [1,1,1,1,1,1,2] => 9
[1,1,1,1,2,1] => 1111101 => [1,1,1,1,1,2,1] => 9
[1,1,1,1,3] => 1111100 => [1,1,1,1,1,3] => 9
[1,1,1,2,1,1] => 1111011 => [1,1,1,1,2,1,1] => 9
[1,1,1,2,2] => 1111010 => [1,1,1,1,2,2] => 8
[1,1,1,3,1] => 1111001 => [1,1,1,1,3,1] => 9
[1,1,1,4] => 1111000 => [1,1,1,1,4] => 9
[1,1,2,1,1,1] => 1110111 => [1,1,1,2,1,1,1] => 9
[1,1,2,1,2] => 1110110 => [1,1,1,2,1,2] => 9
[1,1,2,2,1] => 1110101 => [1,1,1,2,2,1] => 8
[1,1,2,3] => 1110100 => [1,1,1,2,3] => 8
[1,1,3,1,1] => 1110011 => [1,1,1,3,1,1] => 9
[1,1,3,2] => 1110010 => [1,1,1,3,2] => 8
[1,1,4,1] => 1110001 => [1,1,1,4,1] => 9
[1,1,5] => 1110000 => [1,1,1,5] => 9
[1,2,1,1,1,1] => 1101111 => [1,1,2,1,1,1,1] => 9
[1,2,1,1,2] => 1101110 => [1,1,2,1,1,2] => 9
[1,2,1,2,1] => 1101101 => [1,1,2,1,2,1] => 9
[1,2,1,3] => 1101100 => [1,1,2,1,3] => 9
[1,2,2,1,1] => 1101011 => [1,1,2,2,1,1] => 8
[1,2,2,2] => 1101010 => [1,1,2,2,2] => 7
[1,2,3,1] => 1101001 => [1,1,2,3,1] => 8
[1,2,4] => 1101000 => [1,1,2,4] => 8
[1,3,1,1,1] => 1100111 => [1,1,3,1,1,1] => 9
[1,3,1,2] => 1100110 => [1,1,3,1,2] => 9
[1,3,2,1] => 1100101 => [1,1,3,2,1] => 8
[1,3,3] => 1100100 => [1,1,3,3] => 7
[1,4,1,1] => 1100011 => [1,1,4,1,1] => 9
[1,4,2] => 1100010 => [1,1,4,2] => 8
[1,5,1] => 1100001 => [1,1,5,1] => 9
[1,6] => 1100000 => [1,1,6] => 9
[2,1,1,1,1,1] => 1011111 => [1,2,1,1,1,1,1] => 9
[2,1,1,1,2] => 1011110 => [1,2,1,1,1,2] => 9
[2,1,1,2,1] => 1011101 => [1,2,1,1,2,1] => 9
[2,1,1,3] => 1011100 => [1,2,1,1,3] => 9
[2,1,2,1,1] => 1011011 => [1,2,1,2,1,1] => 9
[2,1,2,2] => 1011010 => [1,2,1,2,2] => 8
>>> Load all 255 entries. <<<
search for individual values
searching the database for the individual values of this statistic
/
search for generating function
searching the database for statistics with the same generating function
Description
The semiperimeter of the associated bargraph.
Interpret the composition as the sequence of heights of the bars of a bargraph. This statistic is the semiperimeter of the polygon determined by the axis and the bargraph. Put differently, it is the sum of the number of up steps and the number of horizontal steps when regarding the bargraph as a path with up, horizontal and down steps.
Interpret the composition as the sequence of heights of the bars of a bargraph. This statistic is the semiperimeter of the polygon determined by the axis and the bargraph. Put differently, it is the sum of the number of up steps and the number of horizontal steps when regarding the bargraph as a path with up, horizontal and down steps.
Map
to binary word
Description
Return the composition as a binary word, treating ones as separators.
Encoding a positive integer $i$ as the word $10\dots 0$ consisting of a one followed by $i-1$ zeros, the binary word of a composition $(i_1,\dots,i_k)$ is the concatenation of of words for $i_1,\dots,i_k$.
The image of this map contains precisely the words which do not begin with a $0$.
Encoding a positive integer $i$ as the word $10\dots 0$ consisting of a one followed by $i-1$ zeros, the binary word of a composition $(i_1,\dots,i_k)$ is the concatenation of of words for $i_1,\dots,i_k$.
The image of this map contains precisely the words which do not begin with a $0$.
Map
to composition
Description
The composition corresponding to a binary word.
Prepending $1$ to a binary word $w$, the $i$-th part of the composition equals $1$ plus the number of zeros after the $i$-th $1$ in $w$.
This map is not surjective, since the empty composition does not have a preimage.
Prepending $1$ to a binary word $w$, the $i$-th part of the composition equals $1$ plus the number of zeros after the $i$-th $1$ in $w$.
This map is not surjective, since the empty composition does not have a preimage.
searching the database
Sorry, this statistic was not found in the database
or
add this statistic to the database – it's very simple and we need your support!