The sum of 99 consecutive integers is 9999. What is the greatest integer in the set?
Select the correct option: A) 100 B) 120 C) 149 D) 150 E) 151
sum of n numbers = (n(2a+(n-1)d))/2 where n = no of terms a = 1st term , d - difference between two terms (ie d= a2-a1)   here sum = 9999 , n= 99 d = 1 (since consecutive numbers)   9999= (99/2) * (2a+(99-1)1)   from this 'a' (ie the 1st term) = 52   nth term in a sequence : nth term = a + (n-1) d   here a = 52 , n = 99 , d = 1   So nth term = 52 + (99-1)*1= 
<gadget id="calculator">52 + (99-1)*1</gadget>
<output>150</output>
150   ANSWER:150
<result>D</result>
The sum of 99 consecutive integers is 9999. What is the greatest integer in the set?