Determine Fundamental Solution of Pell Equation - MATLAB Cody - MATLAB Central

Problem 53955. Determine Fundamental Solution of Pell Equation

Difficulty:Rate
Given, a positive value (d), determine the fundamental solution [x, y] of the Pell equation: x^2 - d*y^2 = 1.
Provide character arrays of the outputs (x and y).
For example:
d=5;
[x,y]=pell(d)
x =
'9'
y =
'4'

Solution Stats

25.0% Correct | 75.0% Incorrect
Last Solution submitted on May 11, 2024

Problem Comments

Solution Comments

Show comments
MATLAB Central 2024 In Review
...
Let's celebrate what made 2024 memorable! Together, we made big impacts, hosted...

Problem Recent Solvers2

Suggested Problems

More from this Author56

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page