You are viewing a single comment's thread. Return to all comments →
HINTS:
This is like an IQ test: Find similarities of series (3/2, 7/5, 17/2, 41/29,...)
For example with 7/5:
Numerator (N) 7 = 3 + 2 x 2
Denominator (D) 5 = 3 + 2
Then we got:
N[i] = N[i-1] + 2*D[i-1]
D[i] = N[i-1] + D[i-1]
Then you can solve yourself
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #57: Square root convergents
You are viewing a single comment's thread. Return to all comments →
HINTS:
This is like an IQ test: Find similarities of series (3/2, 7/5, 17/2, 41/29,...)
For example with 7/5:
Numerator (N) 7 = 3 + 2 x 2
Denominator (D) 5 = 3 + 2
Then we got:
N[i] = N[i-1] + 2*D[i-1]
D[i] = N[i-1] + D[i-1]
Then you can solve yourself