Iterates of Number Theoretic Functions with Periodic Rational Coefficients (Generalization of the 3x + 1 Problem)