The sequence of first n odd numbers is
1,3,5,7.........n
This forms an A.P with a=1 and d=2
S=n2{2a+(n−1)d}⇒S=n2{2(1)+(n−1)2}⇒S=n2(2n)⇒S=n2