Only calulates for recurring rational numbers