The sequence below contains terms that doesn't have any perfect square factors (except 1 ).
2 , 3 , 5 , 6 , 7 , 1 0 , 1 1 , 1 3 , 1 4 , 1 5 , . . .
What is the sum of the square-roots of the terms starting from 2 to the largest two-digit term?
Note: The answer should be written to the nearest thousands.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The brackets around the summations are unnecessary.
Simple Python code to do this:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Similar solution as @Kaizen Cyrus 's
The sum is the sum of all square-roots from 2 to 9 9 subtracts the sum of roots of multiples of 4 , 9 , 2 5 , and 4 9 , and add back the double count of the multiples of 3 6 ( = 4 × 9 ) from 2 to 9 9 . In formula we have:
S = k = 2 ∑ 9 9 k − 2 k = 1 ∑ ⌊ 4 9 9 ⌋ k − 3 k = 1 ∑ ⌊ 9 9 9 ⌋ k − 5 k = 1 ∑ ⌊ 2 5 9 9 ⌋ k − 7 k = 1 ∑ ⌊ 4 9 9 9 ⌋ k + 6 k = 1 ∑ ⌊ 3 6 9 9 ⌋ k = k = 2 ∑ 9 9 k − 2 k = 1 ∑ 2 4 k − 3 k = 1 ∑ 1 1 k − 5 k = 1 ∑ 3 k − 7 k = 1 ∑ 2 k + 6 k = 1 ∑ 2 k ≈ 6 6 0 . 4 6 2 9 4 7 1 − 2 ( 8 0 . 6 3 3 7 8 0 2 8 ) − 3 ( 2 5 . 7 8 4 9 0 2 9 8 ) − 5 ( 4 . 1 4 6 2 6 4 3 7 ) − 2 . 4 1 4 2 1 3 5 6 2 ≈ 3 9 8 . 6 9 5
Problem Loading...
Note Loading...
Set Loading...
The answer of the problem is equal to ( k = 2 ∑ 1 0 0 k ) − x , with x being the sum of the roots of the multiples of perfect square numbers from 2 to 1 0 0 .
Let's list all multiples of perfect square numbers ranging from 2 to 1 0 0 :
4 , 8 , 1 2 , 1 6 , 2 0 , . . . , 1 0 0 ⟹ (multiples of 4 )
9 , 1 8 , 2 7 , 4 5 , 5 4 , . . . , 9 9 ⟹ (multiples of 9 excluding 3 6 and 7 2 since they're already multiples of 4 )
2 5 , 5 0 , 7 5 ⟹ (multiples of 25)
4 9 , 9 8 ⟹ (multiples of 4 9 )
The sum of the roots of the numbers in the list above will be x . In the subtraction operation mentioned above, the difference will be the sum of the roots of the numbers from 2 to 1 0 0 that doesn't have any perfect square factors which is the answer of the problem.
x = k = 1 ∑ 2 5 4 k + k = 1 ∑ 3 9 k + k = 5 ∑ 7 9 k + k = 9 ∑ 1 1 9 k + k = 1 ∑ 3 2 5 k + k = 1 ∑ 2 4 9 k
Calculating this, it results to x ≈ 2 7 1 . 7 6 7 8 0 5 . As for k = 2 ∑ 1 0 0 k , the sum is ≈ 6 7 0 . 4 6 2 9 4 7 .
( k = 2 ∑ 1 0 0 k ) − x ≈ 6 7 0 . 4 6 2 9 4 7 − 2 7 1 . 7 6 7 8 0 5 ≈ 3 9 8 . 6 9 5