Let $$A = \{ r\in \mathbb Q \mid \exists p\in \mathbb Z,\text{ and $q\in \mathbb Z$, with $p$ even and $q$ odd, and $r = p/q$} \}$$
For example, $A$ contains such $2/9, 16/(-34)$, and $4$. $A$ does not contain $9/10$, or $-15$ , or $18/32$.
Let $\mathbb Q$ be the set of all rational numbers and let the relation ~ be defined by $x \sim y$ if and only if $x − y ∈ A$.
And I need help for:
How many distinct equivalence classes does ~ have$?$ Describe them.
I think it's an infinite set, but professor told us it's finite. How could it be finite?
This isn't a complete answer, as I can't classify all equivalence classes.
Your professor isn't right. The equivalence relation which you have provided in fact has infinitely many equivalence classes. Take for example $\frac{1}{2^n},n\in\Bbb N$. I claim these numbers are pairwise inequivalent under this relation.
Indeed, suppose $n<m$. Then we have $\frac{1}{2^n}-\frac{1}{2^m}=\frac{2^{m-n}-1}{2^m}$ which has odd numerator and even denominator, and hence can't be represented as $\frac{\text{even}}{\text{odd}}$.
Let me remark that $\frac{1}{2^n}$ don't generate all equivalence classes, as, for example, $\frac{1}{6}$ is not equivalent to any of these (indeed, $\frac{1}{6}-\frac{1}{2^n}=\frac{2^{n-1}-3}{3\cdot 2^n}$).