Slow continued fractions, transducers, and the Serret theorem