Recurrence formula in Pell's equation

  • Context: Undergrad 
  • Thread starter Thread starter basil
  • Start date Start date
  • Tags Tags
    Formula Recurrence
Click For Summary

Discussion Overview

The discussion revolves around finding a recurrence formula for generating solutions to Pell's equation, specifically the equation \(x^2 - 2y^2 = 1\). Participants explore the nature of solutions, corrections to initial claims, and propose various methods for deriving further solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant initially claims that (3,2) is a fundamental solution to the equation \(x^2 + 2y^2 = 1\), which is later corrected by another participant who points out that this does not satisfy the equation.
  • A participant clarifies that the correct equation is \(x^2 - 2y^2 = 1\) and provides a recurrence relation for generating solutions based on this equation.
  • Another participant elaborates on the recurrence relation, suggesting that if (3,2) is denoted as \((x_0, y_0)\), then subsequent solutions can be generated using the formulas \(x_{n+1} = 3x_n + 4y_n\) and \(y_{n+1} = 2x_n + 3y_n\).
  • There is a hint provided for proving the completeness of the generated solutions by considering solutions not in the defined sequence.
  • A participant introduces a general form of recurrence relations for Pell's equation with a non-square integer \(N\) and provides an algorithm to find basic solutions, mentioning potential failures of simpler algorithms.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the initial claim regarding the solution (3,2) and its relation to the equation. There are multiple competing views on the correct formulation of Pell's equation and the methods for generating solutions, indicating that the discussion remains unresolved.

Contextual Notes

There are limitations in the assumptions made regarding the nature of solutions and the applicability of certain algorithms for finding basic solutions to Pell's equation. The discussion reflects a variety of approaches and corrections without settling on a definitive method or outcome.

basil
Messages
8
Reaction score
0
Hello,

I am trying to solve a Pell's equation

X2 + 2Y2 =1

I understand that the (3,2) is a fundamental solution to the equation. However, I am having difficulty to obtain the recurrence formula in order to generate further solutions. Can anybody help?
 
Physics news on Phys.org
I don't know anything about this, but I do question how you can get (3,2) as a solution to x^2 + 2*y^2 = 1, since I get 3^2 + 2*2^2 = 17 which is most emphatically not 1. What am I missing?
 
It works with: X^2 - 2*Y^2 = 1
 
The equation is (x-sqrt(2)y)(x+sqrt(2)y) = 1. Now, your solution is (3,2), so (3-sqrt(2)2)(3+sqrt(2)2) = 1, and by multiplying we have 1 = (x-sqrt(2)y)(3-sqrt(2)2)(x+sqrt(2)y)(3+sqrt(2)2) = (3x+4y-(2x+3y)sqrt(2))(3x+4y+(2x+3y)sqrt(2)) = (3x+4y)^2-2(2x+3y)^2. Hence if we denote (3,2) by (x_0,y_0), you can define (x_{n+1},y_{n+1}) = (3x_n+4y_n,2x_n+3y_n), and thus (x_n,y_n) will be a solution for each n.

Now, we have found some solutions, but is this all? It is a good exercise to prove this.

Hint: (Suppose (x,y) is a solution not in the sequence defined above, and use the recurrence formula backwards to find the "least" positive solution. (a,b) is the "least" solution if a+b is minimal. Try to find a contradiction.)
 
Hey,

Yep its my mistake. Its supposed to be

x2-y2=1

Thanks for pointing out.
 
disregardthat said:
The equation is (x-sqrt(2)y)(x+sqrt(2)y) = 1. Now, your solution is (3,2), so (3-sqrt(2)2)(3+sqrt(2)2) = 1, and by multiplying we have 1 = (x-sqrt(2)y)(3-sqrt(2)2)(x+sqrt(2)y)(3+sqrt(2)2) = (3x+4y-(2x+3y)sqrt(2))(3x+4y+(2x+3y)sqrt(2)) = (3x+4y)^2-2(2x+3y)^2. Hence if we denote (3,2) by (x_0,y_0), you can define (x_{n+1},y_{n+1}) = (3x_n+4y_n,2x_n+3y_n), and thus (x_n,y_n) will be a solution for each n.

Now, we have found some solutions, but is this all? It is a good exercise to prove this.

Hint: (Suppose (x,y) is a solution not in the sequence defined above, and use the recurrence formula backwards to find the "least" positive solution. (a,b) is the "least" solution if a+b is minimal. Try to find a contradiction.)

Awesome. Thanks heaps.
 
Let x[itex]_{1}[/itex], y[itex]_{1}[/itex] be basic solutions to

x^2-N*y^2 = 1, with N a non-square integer number

then we have the following recurrence relations for k>1:

x[itex]_{k+1}[/itex]:=x[itex]_{1}[/itex]*x[itex]_{k}[/itex]+N*y[itex]_{1}[/itex]*y[itex]_{k}[/itex]
y[itex]_{k+1}[/itex]:=x[itex]_{1}[/itex]*y[itex]_{k}[/itex]+y[itex]_{1}[/itex]*x[itex]_{k}[/itex]

For N=2, (2,3) being the basic solution, we have (17,12) as 2. and (99,70) as 3.solution

A trivial algorithm to find the basic solution could be:

y:=1, max:=999
Do While n < max
[itex]\cdots[/itex]Compute w=1+N*y^2
[itex]\cdots[/itex]If w is an integral square x^2 then
[itex]\cdots\cdots[/itex]Return "Basic solution: (x, y)" and Stop
[itex]\cdots[/itex]End_If
[itex]\cdots[/itex]Incr y
End_Do
Return max & " trials and no solution" and Stop

Because there are values of N, whrer this "Q&D"-algorithm fails,
who has experience with with non-trivial algorithms for basic solutions
to the Pell equation?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K