Question: Devise an iterative algorithm to find the nth term of the sequence defined in Exercise.
Exercise: Devise a recursive algorithm to find the nth term of the sequence defined by a0 = 1, a1 = 2, a2 = 3, and an = an-1 + an-2 + an-3, for n = 3, 4, 5,....