Added the recursive exponential with even condition