2 0 1 2 2 0 1 0 2 0 1 1 = a + b + c + d + e + f + g 1 1 1 1 1 1
If a , b , c , d , e , f , g are positive integers that fulfill the equation above, find the value of a − b + c − d + e − f + g .
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.
Can you prove that the values of a , b , c , d , e , f , g are unique?
nice solution
Relevant wiki: https://brilliant.org/wiki/continued-fractions/
Read up on continued fractions to solve this using Mr. Cheong's method.
Python 3.4.2
1 2 3 4 5 6 7 8 9 10 |
|
PS: This is a function from my library which is provided 'as-is'. Thus, I had to calculate a − b + c − d + e − f + g manually.
Problem Loading...
Note Loading...
Set Loading...
2 0 1 2 2 0 1 0 2 0 1 1 = 9 9 9 1 + 2 0 1 2 1 1 9 = 9 9 9 1 + 1 1 9 2 0 1 2 1 = 9 9 9 1 + 1 6 + 1 1 9 1 0 8 1 = 9 9 9 1 + 1 6 + 1 0 8 1 1 9 1 1 = 9 9 9 1 + 1 6 + 1 + 1 0 8 1 1 1 1 = 9 9 9 1 + 1 6 + 1 + 1 1 1 0 8 1 1 1 = 9 9 9 1 + 1 6 + 1 + 9 + 1 1 9 1 1 1 = 9 9 9 1 + 1 6 + 1 + 9 + 9 1 1 1 1 1 1 = 9 9 9 1 + 1 6 + 1 + 9 + 1 + 9 2 1 1 1 1 = 9 9 9 1 + 1 6 + 1 + 9 + 1 + 2 9 1 1 1 1 1 = 9 9 9 1 + 1 6 + 1 + 9 + 1 + 4 + 2 1 1 1 1 1 1
⇒ a − b + c − d + e − f + g = 9 9 9 1 − 1 6 + 1 − 9 + 1 − 4 + 2 = 9 9 6 6