Stream: Archive Mirror: Isabelle Users Mailing List

Topic: [isabelle] new AFP entry: Pell's Equation


view this post on Zulip Email Gateway (Aug 22 2022 at 17:29):

From: Gerwin.Klein@data61.csiro.au
https://www.isa-afp.org/entries/Pell.html

Pell's Equation
by Manuel Eberl

This article gives the basic theory of Pell's equation x2 = 1 + D y2, where D ∈ ℕ is a parameter and x, y are integer variables.

The main result that is proven is the following: If D is not a perfect square, then there exists a fundamental solution(x0, y0) that is not the trivial solution (1, 0) and which generates all other solutions (x, y) in the sense that there exists some n ∈ ℕ such that |x| + |y| √D = (x0 + y0 √D)n. This also implies that the set of solutions is infinite, and it gives us an explicit and executable characterisation of all the solutions.

Based on this, simple executable algorithms for computing the fundamental solution and the infinite sequence of all non-negative solutions are also provided.

Enjoy!
Gerwin


Last updated: Apr 26 2024 at 12:28 UTC