Baltić, .... 2016 Oct 11. Applications of the finite state automata for counting restricted permutations and variations. Yugoslav Journal of Operations Research. [Online] 22:2