It's working for odd 'n' values but not for even onesOC