! The iterative code from ChatGPT works as expected. The recursive implementation provided by ChatGPT has a bug and doesn't converge (it's not flipping +/- for alternate terms). A corrected version I swiped from StackOverflow works just fine!