|
|
A096935
|
|
Smallest number k such that in its decimal representation the first n digits of Pi=3.14... are contained in 11^k.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
n=3, '314': 11^18 = 5559917313492231481, therefore a(3)=18: floor(11^a(3) / 100) mod 1000 = 314.
|
|
MATHEMATICA
|
f[0] = 1; f[n_] := f[n] = Block[{pi = StringTake[ ToString[ RealDigits[Pi, 10, n][[1]]], {2, -2}], k = f[n - 1]}, While[ StringPosition[ ToString[ IntegerDigits[11^k]], pi] == {}, k++ ]; k]; (* Robert G. Wilson v, Aug 19 2004 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|