cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A013648 Numbers k such that the periodic part of the continued fraction for sqrt(k) contains a single 1.

Original entry on oeis.org

3, 8, 15, 24, 35, 48, 63, 80, 99, 120, 143, 168, 175, 176, 195, 208, 224, 255, 288, 323, 360, 399, 440, 483, 528, 551, 575, 624, 675, 728, 783, 799, 840, 899, 960, 1023, 1035, 1088, 1155, 1224, 1247, 1295, 1368, 1403, 1443, 1520, 1599, 1680, 1763, 1848, 1872
Offset: 1

Views

Author

Keywords

Comments

All the terms of A005563 are here, as well as some additional terms (with even period > 2 and the digit 1 in central position) (e.g., sqrt(175) = [13,'4, 2, 1, 2, 4, 26']).

References

  • Kenneth H. Rosen, Elementary Number Theory and Its Applications, Addison-Wesley, 1984, page 426 (but beware of errors!).

Crossrefs

Programs

  • Mathematica
    Select[ Range@ 1900, !IntegerQ[ Sqrt@ #] && Count[ ContinuedFraction[ Sqrt@ #][[2]], 1] == 1 &] (* Robert G. Wilson v, Jul 03 2011 *)

Extensions

Additional comments from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 30 2001
Incorrect formulas and programs removed by R. J. Mathar, Jan 06 2011