Expanding maps and continued fractions