"An introduction to computational combinatorics" - читать интересную книгу автора (E. S. Page, L. B. Wilson)