a_2=-4
a_4=-12
------------
a_2*q^2=a_4 , q>0 (wszystkie wyrazy są ujemne)
-4*q^2=-12/:(-4)
q^2=3
q=\sqrt3 , (q=-\sqrt3 odrzucamy)
-----------
a_1*q=a_2
a_1*\sqrt3=-4
a_1=-\frac{4}{\sqrt3}=-\frac{4*\sqrt3}{\sqrt3*\sqrt3}
a_1=-\frac{4\sqrt3}{3}
-------------
a_n=a_1*q^{n-1} wzór ogólny ciągu
a_n=-\frac{4\sqrt3}{3}*\sqrt3^{n-1}=-\frac{4\sqrt3}{3}*(\sqrt3)^n*(\sqrt3)^{-1}=-\frac{4\sqrt3}{3}*\sqrt{3^n}*\frac{1}{\sqrt3}
a_n=-\frac{4\sqrt{3^n}}{3} wzór ogólny ciągu
-------------
S_n=a_1*\frac{1-q^n}{1-q}
S_6=-\frac{4\sqrt3}{3}*\frac{1-\sqrt{3^6}}{1-\sqrt3}=-\frac{4\sqrt3}{3}*\frac{(1-3^{\frac{6}{2}})*(1+\sqrt3)}{(1-\sqrt3)*(1+\sqrt3)}=
=-\frac{4\sqrt3*(1-3^3)(1+\sqrt3)}{3*(1-3)}=-\frac{4\sqrt3*(-\not26^{13})*(1+\sqrt3)}{3*(-\not2^1)}=
=-\frac{52\sqrt3(1+\sqrt3)}{3}=-\frac{52(\sqrt3+3)}{3} suma sześciu wyrazów ciagu