login
First occurrence of n as a term in the continued fraction for log(2).
0

%I #10 Mar 09 2023 08:22:08

%S 2,3,4,31,41,6,30,90,89,16,188,126,29,42,365,395,71,48,106,379,484,

%T 2097,521,1240,391,1208,300,118,688,296,180,75,1843,1532,1547,1303,

%U 1721,1545,120,917,881,2082,111,615,866,311,952,2095,1293,1065,6140

%N First occurrence of n as a term in the continued fraction for log(2).

%t Module[{nn=6200,cfl2},cfl2=ContinuedFraction[Log[2],nn];Table[Position[cfl2,n,1,1],{n,60}]]//Flatten (* _Harvey P. Dale_, Mar 09 2023 *)

%o (PARI) (1500 precision digits) v=contfrac(log(2)); a(n)=if(n<0,0,s=1; while(abs(n-component(v,s))>0,s++); s)

%Y Cf. A032523.

%K base,nonn

%O 1,1

%A _Benoit Cloitre_, Oct 20 2002