Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Mathematics / Undergraduate Math / February 2009



Tip: Looking for answers? Try searching our database.

A really pretty rose grows in the fertilizer of JSH

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Smith - 25 Feb 2009 07:09 GMT
JSH has given this parametric solution to x^2 - d y^2 = 1, with d = f1
f2 + 1:

x(v) = (f1 + f2 v^2)/(f1 - f2 v^2 - 2 v) - (2 d v/(f1 - f2 v^2 - 2 v) +
   1 - (f1 + f2 v^2)/(f1 - f2 v^2 - 2 v))/(d - 1)

y(v) = (2 d v/(f1 - f2 v^2 - 2 v) +
  1 - (f1 + f2 v^2)/(f1 - f2 v^2 - 2 v))/(d - 1)

(For some reason, he keeps giving those, even though they can be
considerably simplified:

  x(v) = (f1^2 - 2 f1 v + (1 + d) v^2) / (f1^2 - 2 f1 v - (-1 + d) v^2)

  y(v) = -(2 v (-f1 + v)) / (f1^2 - 2 f1 v - (-1 + d) v^2),

but I digress).

Let's look at these for d = 2, f1 = f2 = 1.  Then we have:

x(v) = (-1 + 2 v - 3 v^2) / (-1 + 2 v + v^2)
y(v) = (2 (-1 + v) v) / (-1 + 2 v + v^2)

Let's take the positive solutions of the Pell equation, x^2 - 2 y^2 = 1,
and see what values we have to set v to in order to get those solutions.

Here's the first 20 convergents of the continued fraction for sqrt(2):

1
3/2
7/5
17/12
41/29
99/70
239/169
577/408
1393/985
3363/2378
8119/5741
19601/13860
47321/33461
114243/80782
275807/195025
665857/470832
1607521/1136689
3880899/2744210
9369319/6625109
22619537/15994428

Every other one of these, starting at the second, corresponds to a
solution to the Pell equation.  Here are those solutions, in the form

  x,y {{v->n/m}}

which means that the solution x, y is found by setting v to n/m in JSH's
parametric solution.

3,2 {{v->1/3}}
17,12 {{v->2/5}}
99,70 {{v->7/17}}
577,408 {{v->12/29}}
3363,2378 {{v->41/99}}
19601,13860 {{v->70/169}}
114243,80782 {{v->239/577}}
665857,470832 {{v->408/985}}
3880899,2744210 {{v->1393/3363}}
22619537,15994428 {{v->2378/5741}}

Notice anything interesting there?  Take a look at the numerators and
denominators of the v's, and compare to the convergents (all the
convergents, not just the half of them that give solutions).

If Pi/Qi is the i'th convergent, the v's are

  P1/P2
  Q2/Q3
  P3/P4
  Q4/Q5
  ...

I think this is a very pretty pattern.  It's neat the way the v's are
formed from ratios of the numerators of successive convergents
alternating with the ratios of denominators of successive convergents.

I don't see any obvious pattern like that for any other d I've tried (3,
5, 15, using every possible f1 for each), so this appears like it might
be a property just of 2 (or sqrt(2), I suppose, depending on how you
look at it).

Here's the Mathematica code I used to play around with this:

ClearAll["Global`*"];
y[v_] := (2 d v/(f1 - f2 v^2 - 2 v) +
   1 - (f1 + f2 v^2)/(f1 - f2 v^2 - 2 v))/(d - 1)
x[v_] := (f1 + f2 v^2)/(f1 - f2 v^2 -
    2 v) - (2 d v/(f1 - f2 v^2 - 2 v) +
    1 - (f1 + f2 v^2)/(f1 - f2 v^2 - 2 v))/(d - 1)
d = 2;
f1 = 1;
f2 = (d - 1)/f1;
cv = Convergents[Sqrt[d], 20]
Numerator[cv]^2 - d Denominator[cv]^2
For[i = 2, i <= 20, i += 2, tx = Numerator[cv[[i]]];
ty = Denominator[cv[[i]]];
Print[tx, ",", ty, Solve[{x[v] == tx, y[v] == ty}, v]]]

Signature

--Tim Smith

Tim Smith - 25 Feb 2009 09:47 GMT
> Let's look at these for d = 2, f1 = f2 = 1.  Then we have:
>
[quoted text clipped - 3 lines]
> Let's take the positive solutions of the Pell equation, x^2 - 2 y^2 = 1,
> and see what values we have to set v to in order to get those solutions.
...

> If Pi/Qi is the i'th convergent, the v's are
>
[quoted text clipped - 3 lines]
>    Q4/Q5
>    ...

I took a look at this again, but instead of JSH's parameterization, I
used the simplest one that has been proposed:

  x(v) = (v^2 + d) / (v^2 - d)
  y(v) = (2v) / (v^2 - d)

That, of course, gives a different sequence of v values for d = 2:

3,2 {{v->2}}
17,12 {{v->3/2}}
99,70 {{v->10/7}}
577,408 {{v->17/12}}
3363,2378 {{v->58/41}}
19601,13860 {{v->99/70}}
114243,80782 {{v->338/239}}
665857,470832 {{v->577/408}}
3880899,2744210 {{v->1970/1393}}
22619537,15994428 {{v->3363/2378}}

But again, the v's are tied to the convergents for sqrt(2) in a simple
pattern:

  2 Q1 / P1
    P2 / Q2
  2 Q3 / P3
    P4 / Q4
  2 Q5 / P5
  ...

That pattern isn't as interesting, in my opinion, as the one that arises
out of JSH's parameterization, but, on the other hand, I didn't see any
obvious pattern past d = 2 with the JSH form.  With the simpler form,
there is an obvious pattern.  Here's d - 5:

Convergents:

2, 9/4, 38/17, 161/72, 682/305, 2889/1292, 12238/5473, 51841/23184, \
219602/98209, 930249/416020, 3940598/1762289, 16692641/7465176, \
70711162/31622993, 299537289/133957148, 1268860318/567451585, \
5374978561/2403763488

Values of v that give Pell solutions:

9,4 {{v->5/2}}
161,72 {{v->9/4}}
2889,1292 {{v->85/38}}
51841,23184 {{v->161/72}}
930249,416020 {{v->1525/682}}
16692641,7465176 {{v->2889/1292}}
299537289,133957148 {{v->27365/12238}}
5374978561,2403763488 {{v->51841/23184}}
96450076809,43133785636 {{v->491045/219602}}
1730726404001,774004377960 {{v->930249/416020}}

Relationship of v to convergents:

  5 Q1 / P1
    P2 / Q2
  5 Q3 / P3
    P4 / Q4
  5 Q5 / P5
  ...

Checking a few other values of d, it appears that in general, for
positive integers d where d is not a perfect square, then these are the
values of v that give the successive solutions to x^2 - d y^2 = 1:

  d Q1 / P1
    P2 / Q2
  d Q3 / P3
    P4 / Q4
  ...

Signature

--Tim Smith

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.