04-18-2015, 08:22 PM
as Jallen says, the closed form formula is by far the best for finding individual terms
memoization is much more efficient than skipping terms. sequential adds are essentially the same method but in reverse (bottom up)
memoization is much more efficient than skipping terms. sequential adds are essentially the same method but in reverse (bottom up)