Shachar Lovett. Sol. where q is the quotient and r the remainder and r