Consider the set $\mathbb{N}\cup\{0\}$ and fix $z\in \mathbb{N}\setminus\{0\}$. Define the relation $x \equiv y \iff xyz$ is a square number.
I am trying to verify that this is an equivalence relation, but I have discovered that this need not be the case as it depends on the restrictions on $z$.
So I was wondering for which $z\in \mathbb{N}\setminus\{0\}$ the relation $\equiv$ is reflexive, symmetric and transitive.
Let's look at ensuring reflexivity is satisfied first. This will be perhaps the most constraining property on the value(s) of $z$.
For reflexivity, we need $x \equiv x $ for all $x \in \mathbb N\cup\{0\}$.
This means, we need a fixed $z\in \mathbb N \setminus \{0\}$ such that $x\cdot x \cdot z = x^2 z$ is a perfect square for every $x$. Certainly, $x^2$ is a perfect square. So if $x^2z$ is to be a perfect square, no matter what the value of $x$, what does that force $z$ to be?
Now, with those values of $z$, you need to check whether symmetry and transitivity are satisfied to determine if we have an equivalence relation on $\mathbb N \cup \{0\}$.