Given:
i.) n > 0
ii.) \(t_n\) = \(t_{n-1}\) + n
Question: Is “n” even?
Note that this is logically equivalent to the question: Do we know whether "n" is even or odd? I think framing the question this way is better.
First step: Recursive functions are annoying. Make it explicit. If you’re not sure how to do this, take five minutes out of your life and do a Google or YouTube search for “make recursive functions explicit” and there are penty of instructionals
...
i.) n > 0
ii.) \(t_n\) = \(t_{n-1}\) + n
Question: Is “n” even?
Note that this is logically equivalent to the question: Do we know whether "n" is even or odd? I think framing the question this way is better.
First step: Recursive functions are annoying. Make it explicit. If you’re not sure how to do this, take five minutes out of your life and do a Google or YouTube search for “make recursive functions explicit” and there are penty of instructionals
...








