Here's another way this could be done, rosala..it maybe isn't quite as nice and neat as Alan's, but it still "works"
The sum of the first n positive integers is just given by n*(n+1)/2
So, the sum of the first 41 integers is just 41*42/2
And the sum of the first 21 integers is just 21*22/2
So subtracting the second from the first, we get 41*42/2 - 21*22/2 .... or just......
(41*42 - 21*22)/2 = 1260/2 = 630
Note, that what we are really doing - in non-mathematical terms - is just taking the sum of the first 41 positive integers and "lopping off" the sum of its first 21 terms......so we have 22+23+24+25+.....+41 = 630
-----------------------------------------------------------------------------------------------------
Finally, rosala.....if you only want to work with the numbers themselves and not have to remember any "n's," etc., here's one more method.....(it's really Alan's in disguise!!)
(Subtract the two numbers and add 1)
(Add the two numbers)
Multiply the first thing times the second and divide by two
So we have (41-22+1)(22+ 41) /2 = 20(63)/2 = 630.....no real "formulas" to remember....only a procedure.....whether this is "better" or "worse"...???.....I'll leave that up to you!!!
----------------------------------------------------------------------------------------------------
P.S. - Does the questioner want all sum of all the terms from 22 to 41 or between 22 and 41 ???.........well, no mind....we've given him/her a few different methods to achieve the second...