editing
approved
editing
approved
Table[Count[IntegerDigits[IntegerPart[(E - 2)*10^10^n]], 7], {n, 7}] (* _Robert Price_, Apr 07 2019 *)
7}] (* Robert Price, Apr 07 2019 *)
proposed
editing
editing
proposed
Table[Count[IntegerDigits[IntegerPart[(E - 2)*10^10^n]], 7], {n,
7}] (* Robert Price, Apr 07 2019 *)
approved
editing
proposed
approved
editing
proposed
allocated for Martin RennerNumber of times the digit 7 appears in the first 10^n decimal digits of Euler's number e = exp(1), counting starts after the decimal point.
1, 16, 99, 1008, 9875, 99910, 1000813, 9998342, 99997536, 1000013049
1,2
It is not known if e is normal, but the distribution of decimal digits found for the first 10^n digits of e shows no statistically significant departure from a uniform distribution.
Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/eDigits.html">e Digits</a>.
a:=proc(n)
local digits, EXP1, C, i;
digits:=10^n+100;
EXP1:=convert(frac(evalf[digits](exp(1))), string)[2..digits-99];
C:=0;
for i from 1 to length(EXP1) do
if EXP1[i]="7" then C:=C+1; fi;
od;
return(C);
end;
allocated
nonn,base,more
Martin Renner, Dec 24 2018
approved
editing
allocated for Martin Renner
allocated
approved