I think only mod formula is easy way to find oddeven.

oddeven = number mod 2
if oddeven = 0 then page is even, otherwise odd

.