solve this arithmetic Progression

So, here in part a), we are given n terms (no specific no. of terms given), so no. of terms = n , also, the common difference is defined as the difference between the next term to a specific term and the term, i.e [tex]{\bf{d=a_{n}-a_{n-1}}}[/tex], where d is the common difference, so here d = 49 - 45 = 4
Also, here the last term is 49 let say it the nth term, as no number of terms are given, so using the Arithmetic Progression formula, we can write as ;
[tex]{:\implies \quad \sf a+(n-1)d=49}[/tex]
[tex]{:\implies \quad \sf a+(n-1)4=49}[/tex]
[tex]{:\implies \quad \sf a+4n-4=49}[/tex]
[tex]{:\implies \quad \sf a=49+4-4n=\boxed{\bf{53-4n}}}[/tex]
Now, as we assumed there are n terms, so using the sum formula, we can have ;
[tex]{:\implies \quad \sf S_{n}=\dfrac{n}{2}(a+a_{n})}[/tex]
[tex]{:\implies \quad \sf S_{n}=\dfrac{n}{2}(53-4n+49)}[/tex]
[tex]{:\implies \quad \sf S_{n}=\dfrac{n}{2}(102-4n)}[/tex]
[tex]{:\implies \quad \sf S_{n}=n(56-2n)=\boxed{\bf{-2n^{2}+56n}}}[/tex]
Now, for part b) we are given a geometric progression with first term = a = 1, common ratio = r = (3/1) = 3, and no. of terms = n = 6, so now putting all values in the sum formula we will have;
[tex]{:\implies \quad \sf S_{6}=\dfrac{1\{1-(3)^{6}\}}{1-3}}[/tex]
[tex]{:\implies \quad \sf S_{6}=\dfrac{1-729}{-2}}[/tex]
[tex]{:\implies \quad \sf S_{6}=\dfrac{-728}{-2}=\boxed{\bf{364}}}[/tex]