GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  CTS

 Print  |  
Question:  Sum of Numbers

Answer: If all 6 are replaced by 9 then sum of all the numbers from 1 to 100 is?


October 10, 2008 05:14:59 #2
 madhavimca   Member Since: October 2008    Total Comments: 1 

RE: Sum of Numbers
 
Sum of 1....100=(100(101))/2 [formula n(n+1)/2]
The no '6' occurs at 10 times in 1st place from 1....100
so 10*3=30 [6 is incremented by 3]
At 10th place, no '6' occurs 10 times from 1....100
so 10*30=300
sum=5050+300+30 =5380

Ans:5380
     

 

Back To Question