0

Ultra-modular representative of rational numbers
Objective
Given a rational number, output the corresponding representative in the additive (abelian) quotient group \$\mathbb{Q} / \mathbb{Z}[1/2]\$. \$\mathbb{Q}\$ is the additive group of rational numbers, and \$\mathbb{Z}[1/2]\$ is the additive ...