periodicity math