A032523 Index of first occurrence of n as a term in A001203, the continued fraction for Pi.
4, 9, 1, 30, 40, 32, 2, 44, 130, 100, 276, 55, 28, 13, 3, 78, 647, 137, 140, 180, 214, 83, 203, 91, 791, 112, 574, 175, 243, 147, 878, 455, 531, 421, 1008, 594, 784, 3041, 721, 1872, 754, 119, 492, 429, 81, 3200, 825, 283, 3027, 465, 1437, 3384, 1547, 1864, 446
Offset: 1
Links
- M. F. Hasler and Eric W. Weisstein, Table of n, a(n) for n = 1..47086 (terms n = 1..3131 from _M. F. Hasler_, using data from H. Havermann)
- H. Havermann, 24345 terms of a trivial variation (first term of Pi excluded) of A032523
- Eric Weisstein's World of Mathematics, Pi Continued Fraction
Programs
-
Mathematica
With[{cfp=ContinuedFraction[Pi,5000]},Flatten[Table[Position[cfp,n,1,1],{n,60}]]] (* Harvey P. Dale, Dec 11 2012 *)
-
PARI
default( realprecision, 15000); v=contfrac(Pi); a(n) = for( i=1,#v, v[i]==n && return(i)) \\ - W. Meeussen, simplified by M. F. Hasler, Mar 31 2008
Formula
a(n) = A225802(n) + 1.
Extensions
Edited by M. F. Hasler, Mar 31 2008
Comments