The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.



Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099295 Number of times the digit 4 appears in the first 10^n digits of Pi. 11


%S 1,10,93,1012,9971,100230,1001093,10003863,100011958,999937688,

%T 10000032702,100000357857

%N Number of times the digit 4 appears in the first 10^n digits of Pi.

%D Alfred S. Posamentier & Ingmar Lehmann, A Biography of the World's Most Mysterious Number, Prometheus Books, Amherst, NY 2004, page 129.

%H Kanada Laboratory, <a href="http://www.super-computing.org/pi-decimal_current.html">Statistical Distribution Information</a>.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PiDigits.html">Pi Digits</a>

%t $MaxPrecision = 1100000; dp = Drop[ RealDigits[Pi, 10, 1000010] [[1]], 1]; Table[ Count[ Take[dp, 10^n], 4], {n, 6}]

%t Module[{pid=RealDigits[Pi,10,10^7][[1]],ac},ac=Accumulate[If[#==4,1,0]&/@pid];Table[ac[[10^n]],{n,7}]] (* Generates the first 7 terms of the sequence. *) (* _Harvey P. Dale_, Jan 07 2020 *)

%Y Cf. A099291, A099292, A099293, A099294, A099296, A099297, A099298, A099299, A099300.

%K nonn,base

%O 1,2

%A _Robert G. Wilson v_, Oct 11 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 29 02:34 EST 2020. Contains 338756 sequences. (Running on oeis4.)