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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!