Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started