Solve log_5(q/(q - 4)) < k for q