excuse me, can you fix your equations?
Since 25/19=1+6/19, you get .
Inverting, you get .
Extract the integer part, invert again and you get Q, R.
(P.S. To write equations like everyone else, point the math formulae with your mouse cursor, and read the source before they get compiled.)