A076593 First occurrence of n as a term in the continued fraction for log(3).
1, 5, 8, 29, 25, 40, 3, 264, 4, 2, 122, 177, 36, 115, 14, 193, 12, 176, 54, 655, 444, 527, 394, 491, 823, 204, 349, 170, 704, 105, 1331, 10, 129, 558, 20, 2361, 1680, 2402, 1420, 155, 457, 99, 1575, 118, 370, 270, 2486, 1695, 1572, 666, 680, 658, 5603, 5287
Offset: 1
Programs
-
PARI
default(realprecision, 1500); v=contfrac(log(3)); a(n)=if(n<0,0,s=1; while(abs(n-component(v,s))>0,s++); s)