+0  
 
0
795
2
avatar

find the sum of every integer from 1 to 1000 that is not a perfect square?

 Oct 18, 2016
 #1
avatar
+5

If I undestand your question, you want the sum of 1 to 1,000 MINUS the sum of all squares up to 1,000?

The sum of 1 to 1,000 is =1,000 x 1001 / 2 =500,500

The formula for the sum of squares is:n(n + 1)(2n + 1) / 6

31(31 + 1)(2*31 + 1) / 6 =10,416. Now, we just subtract this number from the above 500,500.

500,500- 10,416 =490,084.

 Oct 18, 2016
 #2
avatar+129839 
0

There are 31 perfect squares from 1 to 1000

 

The sum of these = [ 31 (31 + 1)(2*31 + 1) ]  / 6   =  10,416      (1)

 

The sum of the first 1000 positive integers = (1000)(1001)/ 2 = 500,500    (2)

 

So....subtracting   (1) from (2)  should give us our answer :    500,500 - 10,416   = 490,084

 

 

 

cool cool cool

 Oct 18, 2016

3 Online Users

avatar