[math-fun] parity of arithmetic sequences