[math-fun] number theory: continued fractions with constraints