Saturday, January 14, 2012

Problem 6

Problem Statement :Problem6

Well i will say this ones is pretty direct as Problem 1 on my blog.You dont need any code for this

  • Sum of k^2 is N*(N+1)*(2*N+1)/6 
  • Sum of k whole square is (N*(N+1)/2)^2
  • Subtract the second value from the first for N=100 for the answer 

No comments:

Post a Comment