login
A035331
Base-1000 expansion of Pi.
4
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,1
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
FORMULA
a(n) = floor(Pi*10^(3n)) mod 1000. - M. F. Hasler, May 14 2015
EXAMPLE
Pi = 3.141 592 653 589 793 238 462 643 383 279 502 884 197 169 399 375 105 ...
MATHEMATICA
RealDigits[Pi, 1000, 60][[1]] (* Harvey P. Dale, Nov 22 2015 *)
PROG
(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
CROSSREFS
KEYWORD
nonn,base,easy,look
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Oct 04 2001
Better definition from Franklin T. Adams-Watters, Apr 10 2006
STATUS
approved