The equation as you've written it does not have a single solution. There are $\frac{1}{2}n(n+1)$ degrees of freedom in an $n\times n$ matrix, and your equation, being a scalar equation, only places one constraint on the matrix. There is a unique solution only when $\frac{1}{2}n(n+1) = 1$; and you can check that $n=1$ is the only positive solution to this equation.
Your second line of algebra is incorrect (unless we are in the case $n=1$). If you have two matrices $A,B$ that satisfy $Av=Bv$ for some vector $v$, you can't conclude that $A=B$.