What is the meaning of Occasionally?

On occasion: at relatively infrequent intervals, from time to time, sometimes.

On an occasion, accidentally, by chance.

On the occasion of something else happening; incidentally, by the way.

Source: wiktionary.org