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-4 of 4 results.

A011545 a(n) is the integer whose decimal digits are the first n+1 decimal digits of Pi.

Original entry on oeis.org

3, 31, 314, 3141, 31415, 314159, 3141592, 31415926, 314159265, 3141592653, 31415926535, 314159265358, 3141592653589, 31415926535897, 314159265358979, 3141592653589793, 31415926535897932, 314159265358979323, 3141592653589793238, 31415926535897932384
Offset: 0

Views

Author

Keywords

Comments

Number of collisions occurring in a system consisting of an infinitely massive, rigid wall at the origin, a ball with mass m stationary at position x1 > 0, and a ball with mass (10^2n)m at position x2 > x1 and rolling toward the origin, assuming perfectly elastic collisions and no friction. - Richard Holmes, Jun 17 2021
Wolfgang Haken (1977) conjectured that no term of this sequence is a perfect square, and estimated the probability that this conjecture is false to be smaller than 10^-9. - Paolo Xausa, Jul 15 2023

References

  • Martin Gardner, Fractal Music, Hypercards and More: Mathematical Recreations from Scientific American Magazine, W. H. Freemand and Company, New York, NY, 1992, pp. 274-275.

Crossrefs

Programs

  • Mathematica
    s=RealDigits[Pi, 10, 30][[1]]; Table[FromDigits[Take[s, n]], {n, Length[s]}]
    (* Or: *)
    a[n_] := IntegerPart[Pi*10^n]; Table[a[n], {n, 0, 9}] (* Peter Luschny, Mar 15 2024 *)
  • PARI
    A011545(n)={localprec(n+3); Pi\10^-n} \\ M. F. Hasler, Mar 15 2024

Formula

a(n) = floor(Pi*10^n).

Extensions

Definition corrected by M. F. Hasler, Mar 15 2024

A078604 Largest prime factor of the integer formed by truncating the decimal expansion of Pi to n places.

Original entry on oeis.org

3, 31, 157, 349, 103, 314159, 392699, 8263, 7853, 9786893, 28954771, 157079632679, 68246533, 4304347, 67649047, 1002742628021, 1170899, 990371647, 14523877, 1186001, 1023100457, 451661057, 1492315939, 381315143078063, 950007203269
Offset: 0

Views

Author

Jason Earls, Dec 09 2002

Keywords

Examples

			a(3) = 157 since 314 = 2*157.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := FactorInteger[ IntegerPart[ Pi*10^(n - 1)]][[-1, 1]]; Array[f, 23] (* Robert G. Wilson v, May 30 2015 *)
  • PARI
    a(n) = vecmax(factor(floor(Pi*10^n))[, 1]); \\ Michel Marcus, Dec 28 2013

Formula

a(n) = A006530(A011545(n)). - Michel Marcus, Dec 28 2013
a(n) = A011545(n) iff n is a term in A060421. - Robert G. Wilson v, May 30 2015

Extensions

More terms from Ryan Moore, Dec 28 2013

A094875 a(n)=1 if floor(Pi*10^n) is prime, otherwise a(n)=0.

Original entry on oeis.org

1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Frederic E.D. Michaud (famillesmichaud(AT)hotmail.com), Jun 16 2004

Keywords

Examples

			a(0)=1 because 3 is prime,
a(2)=0 because 314 is divided by 2
a(5)=1 because 314159 is prime
a(13)=0 because 31415926535897 is divided by 163
		

Crossrefs

Programs

  • PARI
    \p 120 a=vector(100);v=1;for(i=1,100,a[i]=isprime(floor(Pi*v));v=v*10)

Extensions

More terms from Johan Claes, Jun 16 2004

A371224 Least prime factor of the integer formed by the first n decimal digits of Pi, or 0 if that number is prime.

Original entry on oeis.org

0, 0, 2, 3, 5, 0, 2, 2, 3, 3, 5, 2, 13, 163, 43, 13, 2, 317213509, 2, 2, 2, 2, 2, 2, 83, 41, 2, 3, 2, 3, 3, 5, 2, 2, 2, 2, 2, 0, 13, 59, 3, 2, 3, 3, 3, 3, 3, 31, 3, 1657, 2, 3, 2, 2, 2, 29, 13, 2, 3, 2, 2, 5, 2828293681646068747, 2, 3, 2, 223, 2, 7
Offset: 1

Views

Author

M. F. Hasler, Mar 15 2024

Keywords

Comments

Complementary to the sequences A005042 (primes in the initial digits of Pi) and A060421 which lists numbers N such that the first N digits of Pi form a prime - exactly the indices of zeros in the present sequence.

Crossrefs

Cf. A000796 (decimals of Pi), A005042 (primes in A011545), A011545 (integer made of n+1 initial digits of Pi), A060421 (length of A005042(n)), A020639 (smallest prime factor of n), A000040 (primes), A089281 (smallest prime factor of A011545(n)).

Programs

  • PARI
    a(n, c=Pi)={ if( n>=precision(c), error("insufficient precision"), !ispseudoprime(c\10^-n--), factor(c\.1^n)[1,1], 0)}

Formula

a(n) = 0 <=> n is in A060421 <=> A011545(n-1) is in A000040 (primes).
a(n) = A089281(n) = A020639(A011545(n-1)) whenever a(n) is nonzero.
a(n) = 2 <=> A000796(2-n) is even <=> A011545(n-1) is even.
Showing 1-4 of 4 results.