Fractions in the Farey Sequences and the Stern-Brocot Tree