I am trying to give a simple recursive definition that gives the length of the longest oscillating subsequence of an array. I know that I need to look at both the X[i] and X[i-1] elements, compare them and increment a counter based on what it is. (less than or greater than). I'm not sure how to make it recursive though. Would adding LOS(max(counter1,counter2)) be the correct thing to add after the if statements to make it recursive?