"Generalizing the continued fraction algorithm to arbitrary dimensions" - читать интересную книгу автора (Just B.)