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.

A065098 Sum of reciprocals of terms in period of continued fraction for sqrt(n) is an integer.

Original entry on oeis.org

239, 1839, 24627
Offset: 1

Views

Author

Naohiro Nomoto, Nov 12 2001

Keywords

Comments

No additional terms up to n = 1 million. - Harvey P. Dale, Apr 11 2016

Examples

			For n=239 the quotient periods are: [[15],[2,5,1,2,4,15,4,2,1,5,2,30]], (1/2)+(1/5)+1+(1/2)+(1/4)+(1/15)+(1/4)+(1/2)+1+(1/5)+(1/2)+(1/30) = 5.
		

Crossrefs

Programs

  • Mathematica
    Do[ If[ IntegerQ[ Apply[ Plus, 1/Last[ ContinuedFraction[ Sqrt[n]]]]], Print[n]], {n, 2, 10^5 } ]
    srcfiQ[n_]:=Module[{s=Sqrt[n]},IntegerQ[If[IntegerQ[s],1/2,Total[1/ ContinuedFraction[s][[2]]]]]]; Select[Range[25000],srcfiQ] (* Harvey P. Dale, Apr 11 2016 *)