A problem of Schur and its generalizations