Question: Write a program that will find the first n solutions to the Pell equation x2 -ky2 =1 using the formula. Your program should ask for
Write a program that will find the first n solutions to the Pell equation x2 -ky2 =1 using the formula. Your program should ask for the coefficient k and the first nontrivial solution of the equation. You can use k=2 for a start. Are your solution(s) integers? Experiment with rounding!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
