|
|
A099300
|
|
Number of times the digit 9 appears in the first 10^n digits of Pi after the decimal point.
|
|
13
|
|
|
1, 14, 106, 1014, 9902, 100106, 1000040, 9999521, 100000273, 1000036012, 9999956635, 99999854780
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
REFERENCES
|
Alfred S. Posamentier and Ingmar Lehmann, A Biography of the World's Most Mysterious Number, Prometheus Books, Amherst, NY 2004, page 129.
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Pi Digits.
|
|
EXAMPLE
|
Pi = 3.1415926535..., so A099294(1) = 1, A099296(1) = 3, and a(1) = 1.
|
|
MATHEMATICA
|
$MaxPrecision = 1100000; dp = Drop[ RealDigits[Pi, 10, 1000010] [[1]], 1]; Table[ Count[ Take[dp, 10^n], 9], {n, 6}]
|
|
PROG
|
from sympy import S
def a(n, d=9): return str(S.Pi.n(10**n + 2))[2:-1].count(str(d))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|