Subharmonic and chaotic resonances in solar activity