n= \frac{2S_{n}}{a_{1}+a{2}}= \frac{2\cdt801}{2+87}= \frac{1602}{89}=18;\\
a_{n}-a_{1}=(n-1)d=> d= \frac{a_{n}-a_{1}}{n-1}= \frac{85}{17}=5 " alt="a_{n}=a_{1}+(n-1)d;\\
S_{n}= \frac{a_{1}+a_{n}}{2}\cdot n= \frac{a_{1}+a_{1}+(n-1)d}{2}\cdot n=\frac{2a_{1}+(n-1)d}{2}\cdot n \\
a_{1}=2; \ \ a_{n}=87;\ \ S_{n}=801;\\
S_{n}= \frac{a_{1}+a_{n}}{2}\cdot n=>
n= \frac{2S_{n}}{a_{1}+a{2}}= \frac{2\cdt801}{2+87}= \frac{1602}{89}=18;\\
a_{n}-a_{1}=(n-1)d=> d= \frac{a_{n}-a_{1}}{n-1}= \frac{85}{17}=5 " align="absmiddle" class="latex-formula">
d=5;
n=18