Actually mine is (3n/2)+2, BUT doing this recursivly is a poor choice ..
It is an assignment for class ...
I have a algorithum almost identical to yours, that i use
for production at work ... but that isn't a luxury right now.
thanks for pointing out the 1 ... using too many different
languages right now and getting cnfused :)
although it still prints out the same results ... I don't
think it is recursing properly to all values of the array.