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.

Showing 1-2 of 2 results.

A032523 Index of first occurrence of n as a term in A001203, the continued fraction for Pi.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Incorrectly indexed version of A225802 (assuming the c.f. is [a_1; a_2, a_3, ...] instead of [a_0; a_1, a_2, ...]).
Until it is proved that every integer n>0 does occur in A001203, we should tacitly understand a convention like "A032523(n) = 0 if n does not occur in A001203". - M. F. Hasler, Mar 31 2008
All positive integers <= 33674 occur in the first 5,821,569,425 terms of the c.f. - Eric W. Weisstein, Sep 19 2011
All positive integers <= 47086 occur in the first 10,672,905,501 terms of the c.f. (the first that do not are 47087, 49004, 50465, 50471, ...) - Eric W. Weisstein, Jul 18 2013

Crossrefs

Cf. A225802 (= a(n) - 1).

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.
A032523(n) = min { k | A001203(k)=n }. - M. F. Hasler, Mar 31 2008

Extensions

Edited by M. F. Hasler, Mar 31 2008

A138759 Indices for which A001203 (continued fraction for Pi) is prime.

Original entry on oeis.org

1, 2, 9, 11, 14, 17, 18, 19, 20, 23, 27, 28, 31, 36, 37, 39, 40, 46, 48, 49, 50, 52, 59, 65, 70, 71, 72, 73, 75, 85, 86, 90, 93, 95, 97, 101, 102, 105, 106, 109, 110, 111, 118, 120, 122, 123, 124, 127, 128, 131, 132, 133, 140, 142, 145, 146, 151, 152, 153, 155, 159
Offset: 1

Views

Author

M. F. Hasler, Mar 31 2008

Keywords

Examples

			This sequence starts 1,2,9,11,... since the first, 2nd, 9th, 11th...
term of sequence A001203 = (3, 7, 15, 1, 292, 1, 1, 1, 2, ...) are primes.
		

Crossrefs

Programs

  • Mathematica
    Position[ContinuedFraction[Pi,200],?PrimeQ]//Flatten(* _Harvey P. Dale, Aug 07 2019 *)
  • PARI
    default(realprecision,1000); t=contfrac(Pi); for( k=1,#t, isprime(t[k]) & print1(k","))

Formula

k is in A138759 <=> A001203(k) is in A000040
Showing 1-2 of 2 results.