OFFSET
1,1
MATHEMATICA
Module[{nn=6200, cfl2}, cfl2=ContinuedFraction[Log[2], nn]; Table[Position[cfl2, n, 1, 1], {n, 60}]]//Flatten (* Harvey P. Dale, Mar 09 2023 *)
PROG
(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)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Oct 20 2002
STATUS
approved