\(S_n=\frac{n\left(n+1\right)}{2}\Rightarrow n+S_n=n+\frac{n\left(n+1\right)}{2}=\frac{2n+n\left(n+1\right)}{2}=\frac{n\left(2+n+1\right)}{2}=\frac{n\left(n+3\right)}{2}\\ \)
\(\Rightarrow\frac{n\left(n+3\right)}{2}=54\Rightarrow n\left(n+3\right)=54.2=9.6.2=9.12\) Vậy n=9