login
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
OFFSET
1,1
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
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Oct 20 2002
STATUS
approved