1, 3, 5, 7, ... is an arithmetic sequence with common difference 2.
an, the nth term of the sequence is given by the formula an = a1+(n-1)d
So, for this sequence, an = 1 + (n-1)(2) = 2n-1
The sum of the first n terms of an arithmetic sequence is given by the formula:
Sn= (n/2)[a1+an]
So, for the sequence 1,3,5,7,...,
Sn = 1+3+5+7+...+(2n-1) = (n/2)[1 + (2n-1)]
= (n/2)(2n) = n2