Group-theoretical aspects of the variable frequency oscillator problem