I'm trying to prove that $f(\{x_1,\cdots,x_n\}) = x_1^2 + \cdots + x_n^2$ is injective (here each $x_i \in \mathbb N_{\geq 1}$). I'm quite confident that $f(x,y) = x^2 + y^2$ is injective (I don't know how to show that explicitly) however I'm sure there is a way to extend it from there. Perhaps there is an argument using geometry or algebra that I am not aware of?
What I'm really trying to do is to show that there exists some injection from the set of all finite subsets of ℕ to ℕ. I thought of taking the sum of the squares of each subset should do the trick, but I just need to show that it's injective (my gut says it is)