def find_innermost_brackets(formula):
	"""Return the indices of (one of) the innermost bracketed term.

	Args:
		formula (list of str): The formula split at whitespace.
	
	Returns:
		int: The first index of the first innermost bracketed term.
		int: The last index +1 of the first innermost bracketed term.
	
	"""
	d = 0
	d_max = 0
	i_max = [0, len(formula)-1]
	inside = False
	for i, symb in enumerate(formula):
		if symb == "(":
			d += 1
			if d > d_max:
				d_max = d
				i_max = []
				inside = True
		elif symb == ")":
			d = max(d-1, 0)
			inside = False
		elif inside:
			i_max.append(i)
	return i_max[0], i_max[-1]+1