login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031637 Numbers k such that the continued fraction for sqrt(k) has odd period and if the last term of the periodic part is deleted the two central terms are both 49. 0

%I #14 Aug 18 2021 00:10:32

%S 15401,29633,48922,49810,135649,139354,175013,178373,217517,221261,

%T 225037,270841,325429,328858,376394,377621,382549,383786,386266,

%U 387509,390001,446953,449629,522125,525017,581605,583130,586186,589250,596945,598490

%N Numbers k such that the continued fraction for sqrt(k) has odd period and if the last term of the periodic part is deleted the two central terms are both 49.

%t ct49Q[n_]:=Module[{s=Sqrt[n],cf,len},cf=ContinuedFraction[s];If[IntegerQ[ s],len=2,len=Length[cf[[2]]]];OddQ[len]&&cf[[2]][[(len+1)/2]]==49]; Select[ Range[600000],ct49Q] (* _Harvey P. Dale_, Sep 19 2014 *)

%K nonn

%O 1,1

%A _David W. Wilson_

%E Corrected and extended by _Harvey P. Dale_, Sep 19 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)