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

A002349

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

Terms

    a(0) =0a(1) =2a(2) =1a(3) =0a(4) =4a(5) =2a(6) =3a(7) =1a(8) =0a(9) =6a(10) =3a(11) =2a(12) =180a(13) =4a(14) =1a(15) =0a(16) =8a(17) =4a(18) =39a(19) =2a(20) =12a(21) =42a(22) =5a(23) =1a(24) =0a(25) =10a(26) =5a(27) =24a(28) =1820a(29) =2

External references