I have to find an equivalence relation in the set of natural numbers which has the two partitions
{ 2x } and { 2x + 1 }
My first thought was
R = { (x,y) in N² : 2 | x + y }
I assume that this is incorrect, because the set is N² and N.
Then I thought about the following:
R = { x in N : ∃ y in N : 2 | x + y }
Is that a correct way to define the relation with the partitions described above?
Your first thought is correct. A binary relation in $\mathbb N$ is supposed to be a subset of $\mathbb N^2$, so having a set of pairs of numbers is exactly what you need to write here.