Robuta

https://maplesoft.com/support/help/Maple/view.aspx?path=combinat%2Fnextcomb firstcomb - Maple Help combinat nextcomb construct the lexicographic successor of a given combination prevcomb construct the lexicographic predecessor of a given combination... maplehelp