Find all integers $k>2$ such that $5\equiv k \bmod k^2$.
I ended up with quardratic formula. Is it right?