Baltić, V.. " Applications of the finite state automata for counting restricted permutations and variations." Yugoslav Journal of Operations Research [Online], 22.2 (2012): n. pag. Web. 10 May. 2025