Long division with remainder as a fraction