Question: Solving pell's equation

Hi,
I am new to using maple and was wondering if i could get some help with this problem...

 

I'm having problems with 2b)

pell := proc (d, K)

local y; 

y := sqrt(d*x^2+1); 

d := 2; 

if y <= K then print*(x, y) end if 

end proc


this is what i have come up with, feel like it is completely wrong though.

Any help would be much appreciated.

Please Wait...