login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A329750 Triangle read by rows where T(n,k) is the number of compositions of n >= 1 with runs-resistance n - k, 1 <= k <= n. 7
1, 1, 1, 2, 1, 1, 2, 3, 2, 1, 2, 6, 6, 1, 1, 0, 4, 9, 15, 3, 1, 0, 2, 16, 22, 22, 1, 1, 0, 0, 8, 37, 38, 41, 3, 1, 0, 0, 0, 26, 86, 69, 72, 2, 1, 0, 0, 0, 2, 78, 175, 124, 129, 3, 1, 0, 0, 0, 0, 14, 202, 367, 226, 213, 1, 1, 0, 0, 0, 0, 0, 52, 469, 750, 376, 395, 5, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
A composition of n is a finite sequence of positive integers with sum n.
For the operation of taking the sequence of run-lengths of a finite sequence, runs-resistance is defined as the number of applications required to reach a singleton.
LINKS
EXAMPLE
Triangle begins:
1
1 1
2 1 1
2 3 2 1
2 6 6 1 1
0 4 9 15 3 1
0 2 16 22 22 1 1
0 0 8 37 38 41 3 1
0 0 0 26 86 69 72 2 1
0 0 0 2 78 175 124 129 3 1
0 0 0 0 14 202 367 226 213 1 1
0 0 0 0 0 52 469 750 376 395 5 1
Row n = 6 counts the following compositions:
(1,1,3,1) (1,1,4) (1,5) (3,3) (6)
(1,3,1,1) (4,1,1) (2,4) (2,2,2)
(1,1,1,2,1) (1,1,1,3) (4,2) (1,1,1,1,1,1)
(1,2,1,1,1) (1,2,2,1) (5,1)
(2,1,1,2) (1,2,3)
(3,1,1,1) (1,3,2)
(1,1,1,1,2) (1,4,1)
(1,1,2,1,1) (2,1,3)
(2,1,1,1,1) (2,3,1)
(3,1,2)
(3,2,1)
(1,1,2,2)
(1,2,1,2)
(2,1,2,1)
(2,2,1,1)
MATHEMATICA
runsres[q_]:=Length[NestWhileList[Length/@Split[#]&, q, Length[#]>1&]]-1;
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], runsres[#]==n-k&]], {n, 10}, {k, n}]
CROSSREFS
Row sums are A000079.
Column sums are A329768.
The version with rows reversed is A329744.
Sequence in context: A183391 A029346 A238902 * A030496 A005794 A280860
KEYWORD
nonn,tabl
AUTHOR
Gus Wiseman, Nov 21 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 05:56 EDT 2024. Contains 371964 sequences. (Running on oeis4.)