find_fractional_with_max_periods: initialize local variable f