A174143 Partials sums of A002794.
1, 2, 5, 21, 568, 539379, 620246356844, 692770666469748075583580, 1025344764595988314871439935857378400856992018101
Offset: 0
Keywords
Formula
a(n) = Sum_{i=0..n} A002794(i).
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.
[n le 1 select 0 else Self(n-1)^2 + Self(n-1) + 1: n in [1..15]]; // Vincenzo Librandi, Oct 05 2015
f[x_] := 1 + x + x^2 ; NestList[f, 1, 7] (* Geoffrey Critzer, May 04 2010 *)
a(n) := if n = 0 then 1 else a(n-1)^2+a(n-1)+1 $ makelist(a(n),n,0,8); /* Emanuele Munarini, Mar 23 2017 */
a(n)=if(n<1,0,a(n-1)^2+a(n-1)+1)
0.592632718201636... = 0 + 1/(1 + 1/(1 + 1/(2 + 1/(5 + ...)))). - _Harry J. Smith_, May 14 2009
digits = 1200; c[0] = 0; c[n_] := c[n] = c[n-1]^2 + c[n-1] + 1; LC[m_] := LC[m] = Cot[Sum[(-1)^k*ArcCot[c[k]], {k, 0, m}]] // N[#, digits+10]&; LC[10]; LC[m = 20]; While[Abs[LC[m] - LC[m-10]] > 10^-digits, m = m+10]; ContinuedFraction[LC[m]] (* Jean-François Alcover, Oct 08 2013 *)
default(realprecision, 2000);b=0.; Lehmers=1/tan(suminf(k=1,b=b^2+b+1;(-1)^k*atan(1/b))+Pi/2); x=contfrac(Lehmers); for (n=1, 13, write("b002665.txt", n-1, " ", x[n])) \\ Harry J. Smith, May 14 2009; edited by Charles R Greathouse IV, Jan 21 2016
0.592632718201636197104078604995701469084275407197161...
RealDigits[With[{nn=15},Cot[Total[Last[#]ArcCot[First[#]]&/@Thread[ {NestList[ #^2+#+1&,0,nn],PadRight[{},nn+1,{1,-1}]}]]]],10,120][[1]] (* Harvey P. Dale, Jan 29 2012 *)
b=0.;1/tan(suminf(k=1,b=b^2+b+1;(-1)^k*atan(1/b))+Pi/2) \\ Charles R Greathouse IV, Jan 21 2016
Comments