The function $g :\mathbb{Q} → \mathbb{Q}$ is defined by $g(r) = 4r + 1$ for each $r \in \mathbb{Q}$.
(a) Determine $g(\mathbb{Z})$ and $g(E)$, where $E$ is the set of even integers.
(b) Determine $g^{-1}(N)$ and $g^{−1}(D)$, where $D$ is the set of odd integers.
This is the answer:
I don't get why in (b) $g^{-1}(N) = n/4$, i think it should be $(n-1)/4$, also for $g^{-1}(D)$
Could any one explain this to me ?

you are right, either
for g-1(D), both sets (yours, and the one you mentioned) are equal