Let f be a function defined at x. Suppose that every sequence $p_1, p_2, p_3 \dots$ in the domain of f converging to $x$ has the property that $f(p_1), f(p_2),f(p_3), \dots$ converges to $f(x)$. Prove that $f$ is continuous at $x$.
So I could prove this by contradiction. So I would start by assuming $f$ is not continuous at $x$. I know I need to create a sequence of points $p_1, p_2, p_3, \dots$ that converges to $x$, but $f(p_1), f(p_2), f(p_3), \dots$ does not converge to $f(x)$.
Confused on how to write this up formally and also steps I should be taking?