Problem 55340. Solutions to Generalized Pell Equation or Quadratic Diophantine
The generalized Pell equation is of the form: . Given D and N as inputs, output the first 50 positive integer solutions [x, y] sorted by x (smallest to largest). Both outputs should be a cell array of character arrays containing the integer solutions.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers1
Suggested Problems
-
Program an exclusive OR operation with logical operators
705 Solvers
-
Choose the best fitting dominoes
206 Solvers
-
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
134 Solvers
-
Convert single-precision floating-point number to binary representation
33 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
470 Solvers
More from this Author54
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!