Project Euler #57: Square root convergents

  • + 0 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