A096407 a(n) = f(n)/f(n-2) where f(k) = A002665(k).
5, 17, 197, 33857, 1133938277, 1285739650972396817, 1653126447166808571538254964938621797
Offset: 2
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.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
Block[{$MaxExtraPrecision=1000},Numerator[Convergents[With[{nn=15},Cot[ Total[Last[#] ArcCot[First[#]]&/@Thread[{NestList[#^2+#+1&,0,nn], PadRight[{},nn+1,{1,-1}]}]]]],10]]] (* Harvey P. Dale, Jan 29 2012 *)
Comments