x 2 − 4 1 y 2 = 1
Q4: Find the pair of positive integers ( a , b ) satisfying the equation above, such that a + b is minimized. Enter your answer as a + b .
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.
Is it always true that continued fractions return the fundamental solution?
Log in to reply
Yes. It is a theorem that solutions of Pell's equation must come from convergents of the continued fraction. Moreover, which convergent to pick to give the fundamental solution is determined specifically by the period of the continued fraction (the continued fraction expansion of a surd is always periodic).
A while back @Calvin Lin asked me to write a wiki on the connection between Pell's equation and continued fractions - I have been putting it off! I guess I should still write it...
Log in to reply
I would be waiting for that :) In fact I'm also planning to write about another method to solve the equation (chakravala).
x 2 − 4 1 y 2 = 1 y 2 x 2 − 4 1 = y 2 1 y 2 x 2 = 4 1 + y 2 1
As y 2 increases exponentially, the value of y 2 1 gets negligible. So we can write the equation as
y 2 x 2 ≈ 4 1 y x ≈ 4 1
So we just need to check pairs of x and y such that y x converge to 4 1 .
To make the search easier, continued fraction of the square root can be found. Continued fraction appears to be [ 6 ; 2 , 2 , 1 2 ] . On testing a few partial sums, it can be found that x = 2 0 4 9 and y = 3 2 0 works.
Hmm! Ok, great problem...awaiting for thisone like; )
Problem Loading...
Note Loading...
Set Loading...
The continued fraction expansion of 4 1 = [ 6 , 2 , 2 , 1 2 ] has period 3 , which is odd. Thus the fundamental solution of the equation p 2 − 4 1 q 2 = − 1 is derived from the second convergent 5 3 2 of the continued fraction expansion of 4 1 , so that p = 3 2 and q = 5 . Thus the fundamental solution of the equation p 2 − 4 1 q 2 = 1 comes from the square ( 3 2 + 5 4 1 ) 2 = 2 0 4 9 + 3 2 0 4 1 , so that p = 2 0 4 9 and q = 3 2 0 . Thus p + q = 2 3 6 9 .