Odd Even Root function