There are 100 natural numbers between 1 and 100. Therefore, n = 100, a = 1 and d = 1.
Sum of first 100 natural numbers = 1002(100+1)=5050
There are 50 even numbers between 1 and 100. Therefore, n = 50, a = 2 and d = 2
Using the formula
Sn=n2[2a+(n−1)d]
Sum of even numbers from 1 to 100 = 502(2×2+49×2) = 2550
Hence, the difference is 5050 - 2550 = 2500