Pak, Igor, and Robin Pemantle. 2015. “On the Longest $k$-Alternating Subsequence”. The Electronic Journal of Combinatorics 22 (1), P1.48. https://doi.org/10.37236/4480.