Writing rational numbers in the form a/b