x 2 − 6 8 2 9 y 2 = 1
Find the pair of positive integers ( x , y ) satisfying the equation above, such that x + y is minimized. Enter your answer as ( x + y ) m o d 1 0 0 0 0 .
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.
How do you claim that 160th convergent provides the solution to x 2 − 6 8 2 9 y 2 = − 1 ?
Log in to reply
This is a standard result of Number Theory, but the details are much too long to give in a comment here. Any text book covering the theory of continued fractions and Pell's Equation should cover it.
x 2 − 6 8 2 9 y 2 y 2 x 2 − 6 8 2 9 y 2 x 2 = 1 = y 2 1 = 6 8 2 9 + y 2 1
Since x and y both differ by a constant factor, as one values grows, then so does the other for large values of x , y . With simple bruteforce, it can be checked that no solutions for x and y exist under 1000. So the solutions are expected to be large.
But as x and y grow, the value of y 2 1 gets insignificant and hence we can write it as
y 2 x 2 y x ≈ 6 8 2 9 ≈ 6 8 2 9
So y x are very close to 6 8 2 9 . This fact can be exploited and successive rational approximations of 6 8 2 9 can be found using continued fractions and the solution can be checked.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
For record, the solutions are
1 2 3 |
|
Here's how I computed the continued fraction -
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Output
1 |
|
Problem Loading...
Note Loading...
Set Loading...
The continued fraction expansion of 6 8 2 9 has period 1 6 1 , which is odd, so the fundamental solution of the equation x 2 − 6 8 2 9 y 2 = − 1 comes from the 1 6 0 th convergent of the continued fraction expansion of 6 8 2 9 . Thus, if this convergent is q p in lowest terms, the fundamental solution is x = p , y = q .
The fundamental solution of x 2 − 6 8 2 9 y 2 = 1 is x = P , y = Q , where P + Q 6 8 2 9 = ( p + q 6 8 2 9 ) 2 . This solution can also be derived from the 3 2 1 st convergent Q P of 6 8 2 9 . Since we only want to find P + Q modulo 1 0 0 0 0 , we need to solve the recurrence relation X n ≡ a n X n − 1 + X n − 2 ( m o d 1 0 0 0 0 ) X 0 = 8 3 , X − 1 = 1 (where a 0 , a 1 , a 2 , a 3 , . . . are the coefficients of the continued fraction expansion of 6 8 2 9 , so that a 0 , a 1 , a 2 , a 3 , a 4 , a 5 , . . . = 8 2 , 1 , 1 , 1 , 3 , 5 , . . . ) to find X 3 2 1 = 1 7 8 9 . These calculations can be performed readily in Excel, and do not require the ability to handle 1 6 2 digit numbers like P .