Rainbow Free Colorings and Rainbow Numbers for
x−y=z2For an equation over a set $S$, an exact $r$-coloring is a surjective map $c: S \to \{1,\dots,r\}$, and a rainbow solution assigns distinct colors to all components. This paper shows that every 3-coloring of $\mathbb{N}$ with upper density exceeding $(4^s-1)/(3\cdot 4^s)$ contains a rainbow solution to $x-y=z^k$. It also computes the rainbow numbers (the smallest $r$ such that every exact $r$-coloring yields a rainbow solution) for $\mathbb{Z}_p$ in the same equation, where $p$ is prime and $k\ge 2$.