Problem 53955. Determine Fundamental Solution of Pell Equation
Solution Stats
Problem Comments
-
2 Comments
The value of x_correct in Test #1 should be 1079 rather than 1089. I have verified this using the tabulated results for x and y in the Wikipedia.
Oh, I see. If you use (x,y) = (1,0) for the 10 cases in which d is a perfect square, then x_correct does become 1089 in Test #1.
Problem Recent Solvers2
Suggested Problems
-
613 Solvers
-
948 Solvers
-
Convert a numerical matrix into a cell array of strings
931 Solvers
-
calculate linear convolution two vectors
119 Solvers
-
Create an index-powered vector
479 Solvers
More from this Author41
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!