Gauss's approach is to add the same sequence in reverse order, namely
S=1+3+5+7+......+95+97+99
S=99+97+95+......+7+5+3+1
---------------------------------------
2S=(1+99)+(3+97)+(5+95)+......(95+5)+(97+3)+(99+1)=50*100=5000
=> sum = (2S)/2 = 5000/2=2500.