Multiplication and division of rational numbers