We know that sum of first n odd numbers are n2. So,
Sum of first 50 odd numbers will be,
1+3+5+7⋯+97+99=502
But we have to find the sum of odd numbers starting from 21. So we have to subtract sum of first 10 odd numbers,
Sum of first 10 odd numbers will be
1+3+5+⋯+17+19=102
Now, for our required sum,
(1+3+5+7⋯+97+99)−(1+3+5+⋯+17+19)=502−102
⟹21+23+25+⋯+97+99=502−102⟹21+23+25+⋯+97+99=2500−100⟹21+23+25+⋯+97+99=2400