The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A040052 Continued fraction for sqrt(60). 4
7, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14, 1, 2, 1, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
G. Xiao, Contfrac.
FORMULA
From Bruno Berselli, Mar 07 2011: (Start)
G.f.: (7 + x + 2*x^2 + x^3 + 7*x^4)/(1-x^4).
a(n) = (6*(-i)^n + 6*i^n + 7*(-1)^n + 9)/2 - 7*A000007(n), where i is the imaginary unit. (End)
From Amiram Eldar, Nov 13 2023: (Start)
Multiplicative with a(2) = 2, a(2^e) = 14 for e >= 2, and a(p^e) = 1 for an odd prime p.
Dirichlet g.f.: zeta(s) * (1 + 1/2^s + 3/4^(s-1)). (End)
EXAMPLE
7.74596669241483377035853079... = 7 + 1/(1 + 1/(2 + 1/(1 + 1/(14 + ...)))). - Harry J. Smith, Jun 07 2009
MAPLE
Digits := 100: convert(evalf(sqrt(N)), confrac, 90, 'cvgts'):
MATHEMATICA
ContinuedFraction[Sqrt[60], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 07 2011 *)
PadRight[{7}, 120, {14, 1, 2, 1}] (* Harvey P. Dale, Aug 07 2019 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 19000); x=contfrac(sqrt(60)); for (n=0, 20000, write("b040052.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 07 2009
(Magma) [7] cat &cat[ [1, 2, 1, 14]: n in [1..18]]; // Bruno Berselli, Mar 07 2011
CROSSREFS
Cf. A010513 (decimal expansion), A000007.
Sequence in context: A369980 A090202 A030172 * A134898 A371946 A176440
KEYWORD
nonn,cofr,easy,mult
AUTHOR
STATUS
approved

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 May 19 09:42 EDT 2024. Contains 372683 sequences. (Running on oeis4.)