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!)
A037077 Decimal expansion of upper limit of - 1^(1/1) + 2^(1/2) - 3^(1/3) + ... . 8

%I #148 Jul 10 2021 09:30:24

%S 1,8,7,8,5,9,6,4,2,4,6,2,0,6,7,1,2,0,2,4,8,5,1,7,9,3,4,0,5,4,2,7,3,2,

%T 3,0,0,5,5,9,0,3,0,9,4,9,0,0,1,3,8,7,8,6,1,7,2,0,0,4,6,8,4,0,8,9,4,7,

%U 7,2,3,1,5,6,4,6,6,0,2,1,3,7,0,3,2,9,6,6,5,4,4,3,3,1,0,7,4,9,6,9,0,3,8,4,2

%N Decimal expansion of upper limit of - 1^(1/1) + 2^(1/2) - 3^(1/3) + ... .

%C From _Daniel Forgues_, Apr 20 2011: (Start)

%C The series Sum_{n>=1} (-1)^n n^(1/n) diverges (oscillates) with the upper limit given by this sequence and the lower limit being the upper limit - 1.

%C The series Sum_{n>=1} (-1)^n (n^(1/n)-1) converges to this upper limit. (End)

%D S. R. Finch, Mathematical Constants, Cambridge, 2003, pp. 448-452.

%H Robert G. Wilson v, <a href="/A037077/b037077.txt">Table of n, a(n) for n = 0..1000</a>

%H Marvin Ray Burns, <a href="/A037077/a037077.nb">Mathematica Notebook of first known 314159 digit computation</a>, finished on Sep 04 2012.

%H Marvin Ray Burns, <a href="http://marvinrayburns.com/314159.txt">Text version of 314159 digits</a>

%H Marvin Ray Burns, <a href="/A037077/a037077_1.nb">Mathematica Notebook of first known 3014991 digit computation</a>, finished on Sep 21 2014.

%H Marvin Ray Burns, <a href="http://www.marvinrayburns.com/6029991A037077.nb">Mathematica Notebook of first known 6029991 digit computation of A037077</a>, finished on Mar 30 2021.

%H Richard E. Crandall, <a href="http://www.marvinrayburns.com/UniversalTOC25.pdf">Unified algorithms for polylogarithm, L-series, and zeta variants</a> (53 pages).

%H OEIS Wiki, <a href="/wiki/MRB_constant">MRB constant</a>

%H Simon Plouffe, <a href="http://www.plouffe.fr/simon/constants/mrburns.txt"> From tables of Constants</a> [Original documentation written by M. R. Burns in 1999]

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/MRBConstant.html">MRB Constant</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PowerTower.html">Power Tower</a>

%e 0.1878596424620671202485179340542732300559030949001387861720046840894772315...

%p A037077 := proc (e) local a, b, c, d, s, k, n, m; if e < 100 then n := 31+e; Digits := 31+e else n := 131*round((1/100)*e); Digits := 131*round((1/100)*e) end if; a := array(0 .. n-1); a[0] := 1; for m to n-1 do a[m] := ((1/2)*sinh(2*ln(m+1)/(m+1))+cosh(ln(m+1)/(m+1))^2-1)/sinh(ln(m+1)/(m+1)) end do; d := (1/2)*(3+2*2^(1/2))^n+(1/2)/(3+2*2^(1/2))^n; b := -1; c := -d; s := 0; for k from 0 to n-1 do c := b-c; b := 2*b*(k^2-n^2)/((2*k+1)*(k+1)); s := s+c*a[k] end do; Digits := e; print(evalf(1/2-s/d)) end proc;

%p A037077(1000) # { where 1000 is the number of digits desired }

%t (* Program 1 *)

%t f[mx_] := Block[{$MaxExtraPrecision = mx + 8, a, b = -1, c = -1 - d, d = (3 + Sqrt[8])^n, n = 131 Ceiling[mx/100], s = 0}, a[0] = 1; d = (d + 1/d)/2; For[m = 1, m < n, a[m] = (1 + m)^(1/(1 + m)); m++]; For[k = 0, k < n, c = b - c; b = b (k + n) (k - n)/((k + 1/2) (k + 1)); s = s + c*a[k]; k++]; N[1/2 - s/d, mx]];

%t RealDigits[ f[105], 10][[1]] (* mx is the number of digits desired - _Marvin Ray Burns_, Aug 05 2007 *)

%t (* Program 2 *)

%t digits = 105; NSum[ (-1)^n*((n^(1/n)) - 1), {n, 1, Infinity}, WorkingPrecision -> digits+10, Method -> "AlternatingSigns"] // RealDigits[#, 10, digits]& // First (* _Jean-François Alcover_, Feb 15 2013 *)

%t (* Program 3 *)

%t (* Fastest as of Jan 06 2013. For use with large calculations (5,000-3,000,000 digits) *)

%t prec = 5000; (* Number of required digits. *)

%t ClearSystemCache[];

%t T0 = SessionTime[];

%t expM[pre_] :=

%t Module[{a, d, s, k, bb, c, n, end, iprec, xvals, x, pc, cores = 6,

%t tsize = 2^7, chunksize, start = 1, ll, ctab,

%t pr = Floor[1.02 pre]}, chunksize = cores*tsize;

%t n = Floor[1.32 pr];

%t end = Ceiling[n/chunksize];

%t Print["Iterations required: ", n];

%t Print["end ", end];

%t Print[end*chunksize]; d = ChebyshevT[n, 3];

%t {b, c, s} = {SetPrecision[-1, 1.1*n], -d, 0};

%t iprec = Ceiling[pr/27];

%t Do[xvals = Flatten[ParallelTable[Table[ll = start + j*tsize + l;

%t x = N[E^(Log[ll]/(ll)), iprec];

%t pc = iprec;

%t While[pc < pr, pc = Min[3 pc, pr];

%t x = SetPrecision[x, pc];

%t y = x^ll - ll;

%t x = x (1 - 2 y/((ll + 1) y + 2 ll ll));];(*N[Exp[Log[ll]/ll],

%t pr]*)x, {l, 0, tsize - 1}], {j, 0, cores - 1},

%t Method -> "CoarsestGrained"]];

%t ctab = ParallelTable[Table[c = b - c;

%t ll = start + l - 2;

%t b *= 2 (ll + n) (ll - n)/((ll + 1) (2 ll + 1));

%t c, {l, chunksize}], Method -> "CoarsestGrained"];

%t s += ctab.(xvals - 1);

%t start += chunksize;

%t Print["done iter ", k*chunksize, " ", SessionTime[] - T0];, {k, 0,

%t end - 1}];

%t N[-s/d, pr]];

%t t2 = Timing[MRBtest2 = expM[prec];];

%t Print[MRBtest2] (* Richard Crandall via _Marvin Ray Burns_, Feb 19 2013 *)

%o (PARI) sumalt(x=1,(-1)^x*((x^(1/x))-1))

%Y Cf. A052110, A157852, A160755, A173273.

%K cons,nonn

%O 0,2

%A _Marvin Ray Burns_; entry updated Jan 30 2009, Jun 21 2009, Dec 11 2009, Sep 04 2010, Jun 23 2011, Sep 08 2012

%E Definition corrected by _Daniel Forgues_, Apr 20 2011

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 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)