Distribution of 0 digits in factorial series: Difference between revisions

Line 746:
zc = zinit()
rfs = [1]
total, trail, first, got_first = 0.0, 1, 0, False
for f in range(2, 50000):
carry, d999, zeroes = 0, 0, (trail - 1) * 3
Line 778:
print("The mean proportion of zero digits in factorials to {} is {}".format(f, ratio))
if ratio <>= 0.16 and not got_first:
got_first = True
first = f
if got_first and ratio >= 0.16:
got_first = False
first = 0
elif first == f0:
got_firstfirst = Truef
 
print("The mean proportion dips permanently below 0.16 at {}.".format(first))
4,102

edits