매일매일 IT

[JavaProgramming] Sum square difference 본문

Programming Language/JAVA

[JavaProgramming] Sum square difference

Teeeeeeemo 2018. 1. 28. 02:54

 자바ㅠㅠ!! 합 제곱 차이 

 The sum of the squares of the first ten natural numbers is, [ 처음 10 개의 자연수의 제곱의 합은,]

12 + 22 + ... [ 12 + 22 + ...] + 102 = 385 [ + 102 = 385]

The square of the sum of the first ten natural numbers is, [ 처음 10 개의 자연수의 합의 제곱은,]

(1 + 2 + ... [ (1 + 2 + ...] + 10)2 = 552 = 3025 [ + 10) 2 = 552 = 3025]

Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640. [ 따라서 처음 10 개의 자연수의 제곱의 합과 합의 제곱의 차이는 3025 - 385 = 2640이다.]

Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. [ 처음 100 개의 자연수 제곱의 합과 합의 제곱의 차이를 찾는다.]



 

Comments