A181229 T(n,k)=Number of length n sequences p(i=0..n-1) with 0<=p(i)<=i and having exactly k maxima.
1, 0, 2, 0, 0, 6, 0, 0, 0, 21, 0, 0, 0, 3, 79, 0, 0, 0, 0, 41, 311, 0, 0, 0, 0, 0, 383, 1265, 0, 0, 0, 0, 0, 26, 3073, 5275, 0, 0, 0, 0, 0, 0, 702, 22835, 22431, 0, 0, 0, 0, 0, 0, 0, 11734, 162517, 96900, 0, 0, 0, 0, 0, 0, 0, 476, 156976, 1127399, 424068, 0, 0, 0, 0, 0, 0, 0, 0, 20956
Offset: 1
Examples
All solutions for n=5 with k=2 maxima ..0..1..0..0..1....0..1..0..0..2....0..1..0..0..3....0..1..0..0..4 ..0..1..0..2..0....0..1..0..2..1....0..1..0..2..2....0..1..0..2..3 ..0..1..0..2..4....0..1..0..1..0....0..1..0..1..1....0..1..0..1..2 ..0..1..0..1..3....0..1..0..1..4....0..1..0..3..0....0..1..0..3..1 ..0..1..0..3..2....0..1..0..3..3....0..1..0..3..4....0..0..1..0..1 ..0..0..1..0..2....0..0..1..0..3....0..0..1..0..4....0..0..2..0..1 ..0..0..2..0..2....0..0..2..0..3....0..0..2..0..4....0..0..2..1..2 ..0..0..2..1..3....0..0..2..1..4....0..1..1..0..1....0..1..1..0..2 ..0..1..1..0..3....0..1..1..0..4....0..1..2..0..1....0..1..2..0..2 ..0..1..2..0..3....0..1..2..0..4....0..1..2..1..2....0..1..2..1..3 ..0..1..2..1..4
Links
- R. H. Hardin, Table of n, a(n) for n=1..10000
Crossrefs
Column 1 is A033321
Comments