"Automatic sequences: theory, applications, generalizations" - читать интересную книгу автора (Jean-Paul Allouche, Jeffrey Shallit)