A332009 Irregular triangle of numerators of the average value of the first letter over all derangements of {1, 2, ..., n} with k descents.
2, 5, 11, 3, 4, 23, 10, 17, 47, 367, 173, 121, 6, 95, 1431, 3973, 2513, 331, 191, 567, 1395, 8011, 391, 761, 8, 383, 8615, 139897, 78483, 27201, 21685, 113, 767, 28073, 715277, 1298393, 158189, 1310499, 40613, 4049, 10, 1535, 89311, 1721203, 9555617, 37414903, 27455053, 7254087, 582767, 4549
Offset: 2
Examples
Triangle begins: 2; 5; 11, 3, 4; 23, 10, 17; 47, 367, 173, 121, 6; 95, 1431, 3973, 2513, 331; 191, 567, 1395, 8011, 391, 761, 8. T(4,1) = 11 because the derangements of four letters with one descent are [2,3,4,1], [2,4,1,3], [3,4,1,2], and [4,1,2,3], and the expected value of the first letter is (2+2+3+4)/4 = 11/4, which has 11 as its numerator.
Programs
-
PARI
descents(p)={sum(i=2, #p, p[i]
Extensions
Terms a(27) and beyond from Andrew Howroyd, Feb 02 2022
Comments