Secondary steady-state and time-periodic flows from a basic flow with square array of odd number of vortices