login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A013647
Period of continued fraction for sqrt(n) contains no 1's.
3
2, 5, 6, 10, 11, 12, 17, 18, 20, 26, 27, 28, 30, 37, 38, 39, 40, 41, 42, 50, 51, 55, 56, 65, 66, 68, 72, 82, 83, 84, 87, 89, 90, 101, 102, 104, 105, 110, 122, 123, 126, 128, 130, 131, 132, 145, 146, 147, 148, 150, 152, 155, 156, 170, 171, 174, 177, 180, 182, 197, 198, 200, 203
OFFSET
1,1
REFERENCES
Kenneth H. Rosen, Elementary Number Theory and Its Applications, Addison-Wesley, 1984, page 426 (but beware of errors!).
MATHEMATICA
cf1Q[n_]:=Module[{s=Sqrt[n]}, If[IntegerQ[s], False, FreeQ[ ContinuedFraction[ s][[2]], 1]]]; Select[Range[250], cf1Q] (* Harvey P. Dale, Jun 06 2021 *)
CROSSREFS
Sequence in context: A307562 A109150 A004202 * A377167 A255068 A183987
KEYWORD
nonn
STATUS
approved