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.

A035331 Base-1000 expansion of Pi.

Original entry on oeis.org

3, 141, 592, 653, 589, 793, 238, 462, 643, 383, 279, 502, 884, 197, 169, 399, 375, 105, 820, 974, 944, 592, 307, 816, 406, 286, 208, 998, 628, 34, 825, 342, 117, 67, 982, 148, 86, 513, 282, 306, 647, 93, 844, 609, 550, 582, 231, 725, 359, 408, 128, 481, 117, 450
Offset: 0

Views

Author

Keywords

Comments

Start with a(0)=3; other terms are formed from triples of successive digits in the decimal expansion of Pi.
This sequence can be considered as a (pseudo)random generator with range 0..999. Its scatterplot graph is very similar to that of other random generators, e.g., A096558. - M. F. Hasler, May 14 2015

Examples

			Pi = 3.141 592 653 589 793 238 462 643 383 279 502 884 197 169 399 375 105 ...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[Pi,1000,60][[1]] (* Harvey P. Dale, Nov 22 2015 *)
  • PARI
    default(realprecision,3*N=100);vector(N,i,Pi\1000^(1-i)%1000) \\ or: {P=Pi;vector(N,i,P\1+0*P=frac(P)*1000)} or {P=Pi/1000;vector(N,i,floor(P=frac(P)*1000))}. \\ M. F. Hasler, May 11 2015

Formula

a(n) = floor(Pi*10^(3n)) mod 1000. - M. F. Hasler, May 14 2015

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Oct 04 2001
Better definition from Franklin T. Adams-Watters, Apr 10 2006