Let \( f(x) = \begin{cases} x^2+2 &\text{if } x
If the graph y=f(x) is continuous, find the sum of all possible values of n.