cp's OEIS Frontend

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.

A076589 First occurrence of n as a term in the continued fraction for sqrt(Pi).

Original entry on oeis.org

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

Views

Author

Benoit Cloitre, Oct 20 2002

Keywords

Crossrefs

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)