1. Introduction. Let ω be an irrational number. It is well known that there exists a positive real number h such that the inequality
has infinitely many solutions in coprime integers a and c. A theorem of Hurwitz asserts that the set of all such numbers h is a closed set with supremum √5. Various proofs of these results are known, among them one by Ford (1), in which he makes use of properties of the modular group. This approach suggests the following generalization.