On oscillations of number-theoretic functions