Take solution to Pellian equation x^2 - n*y^2 = 1 with smallest positive y and x >= 0; sequence gives a(n) = x, or 1 if n is a square. A002349 gives values of y.

A002350

Take solution to Pellian equation x^2 - n*y^2 = 1 with smallest positive y and x >= 0; sequence gives a(n) = x, or 1 if n is a square. A002349 gives values of y.

Terms

    a(0) =1a(1) =3a(2) =2a(3) =1a(4) =9a(5) =5a(6) =8a(7) =3a(8) =1a(9) =19a(10) =10a(11) =7a(12) =649a(13) =15a(14) =4a(15) =1a(16) =33a(17) =17a(18) =170a(19) =9a(20) =55a(21) =197a(22) =24a(23) =5a(24) =1a(25) =51a(26) =26a(27) =127a(28) =9801a(29) =11

External references