"Concrete mathematics" - читать интересную книгу автора (Graham, Knuth, Patashnik.)