divide in even odd using inject