\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Формула суммы арифметической прогрессии:
Sn = (a1 + an) / 2 * n, где:
a1 = 2 * 1 - 7 = -5
a10 = 2 * 10 - 7 = 13
S10 = (-5 + 13) / 2 * 10 = 40.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Формула суммы арифметической прогрессии:
Sn = (a1 + an) / 2 * n, где:
a1 = 2 * 1 - 7 = -5
a10 = 2 * 10 - 7 = 13
S10 = (-5 + 13) / 2 * 10 = 40.