Let $R$ be a equivalence relation over $\mathbb{N}^k$. We say that $R$ is primitive recursive (p.r) if its indicator function is primitive recursive.
Let $R$ be p.r and $f_R$ its indicator function.
Well I already proved that the equivalence classes defined by $R$ are also primitive recursive: if $[\vec{n}]$ in an equivalence class we define $f_{[\vec{n}]}(\vec{m})=f_R(\vec{n},\vec{m})$ and it works as its indicator function.
But I don't know how to prove the if the converse is true or not.
Thanks in advance