Baltić, Vladimir. 2012. “Applications of the Finite State Automata for Counting Restricted Permutations and Variations”. Yugoslav Journal of Operations Research 22 (2):183-98. https://doi.org/10.2298/YJOR120211023B.