Period of continued fraction for square root of n (or 0 if n is a square).

A003285

Period of continued fraction for square root of n (or 0 if n is a square).

Terms

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

External references