On some generalizations of a theorem of A. Markoff