login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076588 First occurrence of n as a term in the continued fraction for Pi/4. 0
2, 8, 3, 76, 17, 67, 50, 54, 11, 20, 73, 413, 59, 162, 7, 75, 13, 587, 393, 24, 112, 228, 403, 40, 843, 560, 590, 69, 187, 617, 215, 400, 1182, 259, 1680, 548, 758, 226, 133, 78, 1265, 589, 96, 169, 3108, 5892, 258, 261, 4608, 3810, 2386, 1251, 2698, 2374 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..54.

PROG

(PARI) (15000 precision digits) v=contfrac(Pi/4); a(n)=if(n<0, 0, s=1; while(abs(n-component(v, s))>0, s++); s)

CROSSREFS

Cf. A032523.

Sequence in context: A256411 A218609 A268491 * A068565 A092042 A158934

Adjacent sequences:  A076585 A076586 A076587 * A076589 A076590 A076591

KEYWORD

base,nonn

AUTHOR

Benoit Cloitre, Oct 20 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 18 03:02 EST 2022. Contains 350410 sequences. (Running on oeis4.)