
"""simple docstring"""




def        _lowerCamelCase ( __a    ):
		SCREAMING_SNAKE_CASE_						 = (1 + 24 * n) ** 0.5
		return ((1 + root) / 6) % 1 == 0



def        _lowerCamelCase ( __a = 5_000    ):
		SCREAMING_SNAKE_CASE_						 = [(i * (3 * i - 1)) // 2 for i in range(1,							__a    )]
		for i, pentagonal_i in enumerate(__a    ):
				for j in range(__a,							len(__a    )    ):
						SCREAMING_SNAKE_CASE_						 = pentagonal_nums[j]
						SCREAMING_SNAKE_CASE_						 = pentagonal_i + pentagonal_j
						SCREAMING_SNAKE_CASE_						 = pentagonal_j - pentagonal_i
						if is_pentagonal(__a    ) and is_pentagonal(__a    ):
								return b

		return -1


if __name__ == "__main__":
						print(f'''{solution() = }''')

"""simple docstring"""




from __future__ import annotations



def        _lowerCamelCase ( __a,							__a    ):
		SCREAMING_SNAKE_CASE_						 = 0
		SCREAMING_SNAKE_CASE_						 = len(__a    ) - 1

		while i < j:
				if nums[i] + nums[j] == target:
						return [i, j]
				elif nums[i] + nums[j] < target:
						SCREAMING_SNAKE_CASE_						 = i + 1
				else:
						SCREAMING_SNAKE_CASE_						 = j - 1

		return []


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						print(f'''{two_pointer([2, 7, 11, 15], 9) = }''')