A076589 First occurrence of n as a term in the continued fraction for sqrt(Pi).
1, 4, 3, 20, 43, 7, 32, 54, 40, 86, 91, 29, 10, 363, 705, 169, 341, 14, 181, 81, 307, 574, 153, 234, 175, 477, 552, 9, 2550, 743, 801, 2245, 239, 360, 402, 44, 1985, 1682, 395, 1074, 331, 285, 1278, 2097, 384, 3972, 857, 2240, 146, 9736, 924, 1690, 350, 1445
Offset: 1
Keywords
Programs
-
PARI
default(realprecision, 1500); v=contfrac(sqrt(Pi)); a(n)=if(n<0,0,s=1; while(abs(n-component(v,s))>0,s++); s)