The odd numbers between 0 and 50 are;
1, 3, 5, 7, 9 … 49
Therefore, it can be observed that these odd numbers are in an A.P.
a = 1
d = 2
l = 49
l = a + (n − 1) d
49 = 1 + (n − 1)2
48 = 2(n − 1)
n − 1 = 24
n = 25
Sn=n2(a+l)S25=252(1+49)=25(50)2=(25)(25)=625