Counting up-up-or-down-down permutations
Abstract
Answering a question of Donald Knuth, we find the bivariate exponential generating function for "up-up-or-down-down'' permutations of odd length according to their last entry. An up-up-or-down-down permutation is a permutation a1a2·s an satisfying a2i-1<a2i if and only if a2i<a2i+1 for 1 i <n/2. Equivalently, an up-up-or-down-down permutation is one in which every peak and every valley is odd.
0
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.