Restricted partial quotient